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
|
|---|---|---|---|---|---|---|---|---|---|---|
p03219
|
u857408368
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X, Y = map(int, input().split())\n\nprint(X + Y / 2)\n', 'X, Y = map(int, input().split())\n\nprint(X + int(Y / 2))\n']
|
['Wrong Answer', 'Accepted']
|
['s906675764', 's056800770']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[51, 56]
|
p03219
|
u857673087
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['A,B =map(int, input().split())\n\nprint( X + Y/2)', 'X,Y = map(int, input().split())\n\nprint(X +(Y/2))', 'X,Y = map(int, input().split())\n\nprint(X + Y//2)']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s509735188', 's565676207', 's921864778']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[47, 48, 48]
|
p03219
|
u859897687
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a,b=map(int,input().split())\nprint(a+b/2)\n', 'a,b=map(int,input().split());print(a+b//2)']
|
['Wrong Answer', 'Accepted']
|
['s964860992', 's858876056']
|
[2940.0, 2940.0]
|
[18.0, 19.0]
|
[42, 42]
|
p03219
|
u863397945
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a, b = map(int, input().split())\n \nprint(a+(b/2))', 'a,b = map(int, input().split())\nprint(a+b%2)', 'a,b = map(int, input().split())\nprint(a + b/2)', 'a,b = map(int, input().split())\nprint(a+b/2)', 'a, b = map(int, input().split())\n\nprint(a+b/2)', 'X,Y = map(int,input().split())\n\nprint(X+Y//2)']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s154185012', 's380031492', 's634160505', 's780134258', 's794019076', 's661660729']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 9156.0]
|
[17.0, 17.0, 19.0, 17.0, 17.0, 27.0]
|
[49, 44, 46, 44, 46, 45]
|
p03219
|
u864900001
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x, y = map(int, input().split())\nprint(x+y/2)', 'x, y = map(int, input().split())\nprint((int)(x+y/2))']
|
['Wrong Answer', 'Accepted']
|
['s421105169', 's339572196']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[45, 52]
|
p03219
|
u865413330
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x, y = map(int, input().split())\n \nprint(x + y / 2)\n', 'x, y = int(input())\n\nprint(x + int(y / 2))\n', 'x, y = int(input())\n\nprint(x + y / 2)\n', 'x, y = map(int, input().split())\n\nprint(x + int(y / 2))\n']
|
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s374616317', 's556603127', 's824577501', 's073809290']
|
[2940.0, 3064.0, 2940.0, 2940.0]
|
[25.0, 18.0, 18.0, 17.0]
|
[66, 43, 38, 56]
|
p03219
|
u866169813
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y=map(int,input().split(" "))\nprint(x+y/2)\n', 'x,y=map(int,input().split(" "))\nprint(x+y//2)']
|
['Wrong Answer', 'Accepted']
|
['s479353473', 's411372122']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[45, 45]
|
p03219
|
u867069435
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['print(sum(list(map(int, input().split())))//2)', 't, b = map(int, input().split())\nprint(t+b//2)']
|
['Wrong Answer', 'Accepted']
|
['s511002096', 's127365827']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[46, 46]
|
p03219
|
u867848444
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['n=int(input())\nt,a=map(int,input().split())\nh=list(map(int,input().split()))\nTA=10**10\nnum=0\nfor i in range(n):\n if TA>abs(a-(t-h[i]*0.006))>0:\n num=i+1\n TA=abs(a-(t-h[i]*0.006))\n \nprint(num)', 'n=int(input())\nt,a=map(int,input().split())\nh=list(map(int,input().split()))\nTA=10**5+1\nnum=0\nfor i in range(n):\n if TA>abs(a-(t-h[i]*0.006)):\n num=i+1\n TA=abs(a-(t-h[i]*0.006))\n\nprint(num)', 'n=int(input())\nt,a=map(int,input().split())\nh=list(map(int,input().split()))\nTA=10**5+1\nnum=0\nfor i in range(n):\n if TA>abs(a-(t-h[i]*0.006))>0:\n num=i+1\n TA=abs(a-(t-h[i]*0.006))\n \nprint(num)', 'n=int(input())\nt,a=map(int,input().split())\nh=list(map(int,input().split()))\nTA=10**5+1\nfor i in range(n):\n if TA>abs(a-t+h[i]*0.006):\n ans=i+1\n TA=abs(a-t+h[i]*0.006)\n\nprint(ans)', 'x,y=map(int,input().split())\nprint(int(x+y/2))']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s037145106', 's537954505', 's547406358', 's564355964', 's481670566']
|
[3064.0, 3064.0, 3188.0, 3060.0, 2940.0]
|
[17.0, 17.0, 18.0, 17.0, 17.0]
|
[208, 206, 209, 196, 46]
|
p03219
|
u868237899
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x, y = map(int, input().split())\nprint(x + y/2)', 'x, y = map(int, input().split())\nprint(int(x + y/2))']
|
['Wrong Answer', 'Accepted']
|
['s427672371', 's714272112']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[47, 52]
|
p03219
|
u869937227
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y = map(int,input().split())\nprint(x + y / 2)', 'x,y = map(int,input().split())\nprint(int(x + y / 2))']
|
['Wrong Answer', 'Accepted']
|
['s285715680', 's029178238']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[47, 52]
|
p03219
|
u872887731
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a , b = map(int,input().split())\nprint(int(a/2 + b))', 'a , b = map(int,input().split())\nprint(int(a/2 + b))', 'a , b = map(int,input().split())\nprint(int(a/2 + b))\n', 'a , b = map(int,input().split())\nprint(int(a/2 + b))', 'a , b = map(int,input().split())\nprint(int(a/2 + b))\n', 'a , b = map(int,input().split())\nprint(int(a + b/2))\n']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s129058279', 's453692795', 's631234673', 's863837155', 's914861864', 's425148976']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
|
[52, 52, 53, 52, 53, 53]
|
p03219
|
u873269440
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['\ndef main():\n\n X,Y = map(int,input().split())\n print(X+Y/2)\n\n\n \n\n\nif __name__== "__main__":\n main() ', '\ndef main():\n\n X,Y = map(int,input().split())\n print(int(X+Y/2))\n\n\n \n\n\nif __name__== "__main__":\n main() ']
|
['Wrong Answer', 'Accepted']
|
['s531257111', 's050833212']
|
[3060.0, 2940.0]
|
[19.0, 17.0]
|
[112, 117]
|
p03219
|
u875756191
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x, y = map(int,input().split())\n\nprint(x + (y / 2))\n', 'x, y = map(int,input().split())\n\nprint(int(x + (y / 2)))\n']
|
['Wrong Answer', 'Accepted']
|
['s582335509', 's174368114']
|
[9124.0, 9148.0]
|
[27.0, 26.0]
|
[52, 57]
|
p03219
|
u880466014
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x, y = map(int, input().split())\nprint(x+y/2)', 'x, y = map(int, input().split())\ntotal = x + y // 2\nprint(total)']
|
['Wrong Answer', 'Accepted']
|
['s752151227', 's226554275']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[45, 64]
|
p03219
|
u881730038
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x, y = map(int, input().split())\nprint(x + y / 2)\n', 'x, y = map(int, input().split())\nprint(int(x + y / 2))']
|
['Wrong Answer', 'Accepted']
|
['s631006058', 's566839003']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[50, 54]
|
p03219
|
u882100545
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
["x, y = input().split(' ')\nx = int(x)\ny = int(y)\n\nreturn y / 2 + x", "x, y = input().split(' ')\nx = int(x)\ny = int(y)\nprint(y / 2 + x)\n", "n = int(input())\nt, a = input().split(' ')\nt = int(t)\na = int(a)\nh = input().split(' ')\n\ndiff = 10000\npoint = 10000\n\nfor x in range(n):\n temp = t - int(h[x]) * 0.006\n tmp = abs(a - temp)\n\n if tmp < diff:\n diff = tmp\n point = x + 1\n\nprint(point)\n", "x, y = input().split(' ')\nx = int(x)\ny = int(y)\nprint(int(y / 2 + x))"]
|
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s301227376', 's644327038', 's666343578', 's096044137']
|
[2940.0, 2940.0, 3064.0, 2940.0]
|
[18.0, 18.0, 18.0, 18.0]
|
[65, 65, 268, 69]
|
p03219
|
u883323885
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y=[int(i) for i in input().split()]\nprint("x+y/2")', 'x,y=[int(i) for i in input().split()]\nprint(x+y/2)', 'x,y=[int(i) for i in input().split()]\nprint(x+y/2)', 'x,y=[int(i) for i in input().split()]\nprint(round(x+y/2))']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s044483906', 's924691325', 's938267658', 's060525593']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0, 17.0]
|
[52, 50, 50, 57]
|
p03219
|
u885899351
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['print(int(input())+int(input())//2)', 'n,m=map(int,input().split())\nprint(n+m//2)']
|
['Runtime Error', 'Accepted']
|
['s237350315', 's746264841']
|
[2940.0, 2940.0]
|
[18.0, 18.0]
|
[35, 42]
|
p03219
|
u887509713
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X, Y = map(int, input().split())\ns = X + Y/2\nprint(s)\n\n', 'x,y = map(int,input().split())\n\ns = x + y//2\n\nprint(s)']
|
['Wrong Answer', 'Accepted']
|
['s638232701', 's577167539']
|
[2940.0, 2940.0]
|
[17.0, 19.0]
|
[55, 54]
|
p03219
|
u889405092
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X,Y=map(int,input().split())\nprint(X+Y/2)', 'X,Y=map(int,input().split())\nprint(X+y/2)', 'X,Y=map(int,input().split())\nprint(X+Y//2)']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s116073083', 's586497361', 's101885618']
|
[9052.0, 9104.0, 9052.0]
|
[27.0, 28.0, 30.0]
|
[41, 41, 42]
|
p03219
|
u890183245
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X, Y = map(int, input().split())\nprint(X+Y/2)', 'X, Y = map(int, input().split())\nprint((X+Y)/2)', 'X, Y = map(int, input().split())\nprint(int(X+Y/2))']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s539291241', 's815140300', 's892471728']
|
[3060.0, 2940.0, 2940.0]
|
[19.0, 17.0, 17.0]
|
[45, 47, 50]
|
p03219
|
u891666094
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y = tuple(map(int,input().split()))\n \nprint(x + y/2)', 'x,y = tuple(map(int,input().split()))\n\n\n\nprint(int(x) + int(y)/2)', 'x = int(input())\ny = int(input())\n\nprint(x + y/2)\n', 'x = int(input(x?\\n))\ny = int(input(y?\\n))\n\nprint(x + y/2)\n', 'x,y = tuple(map(int,input().split()))\n\nanswer = int(x) + int(y)/2\n\nprint(int(answer))']
|
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s013274292', 's381931622', 's856911612', 's876169861', 's035344927']
|
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 18.0, 18.0, 17.0, 17.0]
|
[54, 65, 50, 58, 85]
|
p03219
|
u893239355
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y=map(int,input().split())\nprint(x+y/2)\n', 'x,y=map(int,input())\nprint(x+y/2)', 'x,y=map(int,input().split())\nprint(int(x+y/2))\n']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s331744817', 's820529679', 's654465279']
|
[9132.0, 9060.0, 9084.0]
|
[24.0, 25.0, 26.0]
|
[42, 33, 47]
|
p03219
|
u894359385
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X,Y = map(int, input(),split())\nXY = X + Y / 2\nprint(XY)\n', 'X,Y = map(int, input(),split())\nXY = int(X + Y / 2)\nprint(XY)', 'X,Y = map(int, input(),split())\nprint(X + (Y / 2))', 'X,Y = map(int, input().split())\nXY = int(X + Y / 2)\nprint(XY)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s033329934', 's121500095', 's861614051', 's173113293']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 18.0, 17.0, 18.0]
|
[57, 61, 50, 61]
|
p03219
|
u894694822
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y = map(int,input().split())\nz = x+y/2\nprint(z)', 'x,y = map(int,input().split())\nprint(int(x+y/2))']
|
['Wrong Answer', 'Accepted']
|
['s173323575', 's336103757']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[49, 48]
|
p03219
|
u896206464
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['# -*- coding: utf-8 -*-\n\nx, y = map(int, input().split())\nz = x/2 + y\n\nprint("{}".format(z))', 'X, Y = [int(_) for _ in input().split()]\nprint(X + int(Y / 2))']
|
['Wrong Answer', 'Accepted']
|
['s186765811', 's041250725']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[141, 62]
|
p03219
|
u896775745
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X Y = map(int, input().split())\n\nprint(X + int(Y / 2))', 'X, Y = map(int, input().split())\n\nprint(X + int(Y / 2))']
|
['Runtime Error', 'Accepted']
|
['s512977177', 's602734306']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[54, 55]
|
p03219
|
u896791216
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x, y = map(int, input().split())\nans = x + y / 2\nprint(ans)', 'x, y = map(int, input().split())\nans = x + y // 2\nprint(ans)']
|
['Wrong Answer', 'Accepted']
|
['s843571006', 's321512548']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[59, 60]
|
p03219
|
u897302879
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X, Y = input().split()\nprint(X + Y/2)', 'X, Y = map(int, input().split())\nprint(X + Y/2)', 'X, Y = map(int, raw_input().split())\nprint(X + Y/2)', 'X, Y = map(int, input().split())\nprint(int(X + Y/2))\n']
|
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s292271255', 's357039349', 's520151296', 's542982472']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[17.0, 18.0, 17.0, 18.0]
|
[37, 47, 51, 53]
|
p03219
|
u901598613
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y=map(int,input.split())\nprint(x+y/2)', 'x,y=map(int,input().split())\nprint(x+y/2)', 'x,y=map(int,input().split())\nprint(x+(y/2))', 'x,y=map(int,input().split())\nprint(int(x+y/2))']
|
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s451420151', 's499881916', 's730327307', 's759689873']
|
[8864.0, 9104.0, 9044.0, 9096.0]
|
[24.0, 22.0, 28.0, 26.0]
|
[39, 41, 43, 46]
|
p03219
|
u901738963
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
["x = []\nx = (input('').split())\nprint(int(x[0])+ int(x[1])/2)\n", "x,y = map(int,input('').split())\nprint(x+ y//2)\n"]
|
['Wrong Answer', 'Accepted']
|
['s329442797', 's734131165']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[61, 48]
|
p03219
|
u903460784
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['\nx,y=map(int, input().split())\n\nprint(x+y/2)', 'x,y=map(int, input().split())\n\nprint(x+y/2)', 'x=input().split()\n\nprint(x[0]+x[1]/2)', '\n\n\n\n\n#\n\n\n\n\n\nx,y=map(int,input().split())\n\nprint(int(x+y/2))\n']
|
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s010234394', 's828018970', 's856698707', 's877949995']
|
[2940.0, 2940.0, 3064.0, 2940.0]
|
[17.0, 18.0, 19.0, 17.0]
|
[44, 43, 37, 572]
|
p03219
|
u904995051
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y = map(int,input().split())\nprint(x+y/2)', 'x,y = map(int,input().split())\nprint(x+y//2)']
|
['Wrong Answer', 'Accepted']
|
['s609541551', 's034795663']
|
[9032.0, 9096.0]
|
[27.0, 30.0]
|
[43, 44]
|
p03219
|
u911438260
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X, Y = map(int,input().split())\nprint(X + Y/2)', 'X, Y = map(int,input().split())\nprint(X + Y//2)']
|
['Wrong Answer', 'Accepted']
|
['s949358726', 's784896432']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[46, 47]
|
p03219
|
u912164574
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['# -*- coding:utf-8 -*-\n\n\ndef ID():\n N, M = [int(n) for n in input().split()]\n lst = [[n for n in input().split()] for _ in range(M)]\n sorted_lst = sorted(lst, key=lambda x: int(x[1]))\n memo = {}\n result = {}\n for p, x in sorted_lst:\n if p not in memo:\n memo[p] = 1\n else:\n memo[p] += 1\n higher = p.zfill(6)\n lower = "{0:06d}".format(memo[p])\n result[p + x] = higher + lower\n\n for p, x in lst:\n print(result[p+x])\n\n\nif __name__ == \'__main__\':\n ID()', "# -*- coding:utf-8 -*-\n\n\ndef Discount_Fare():\n X, Y = [int(n) for n in input().split()]\n print(X + (Y // 2))\n\n\nif __name__ == '__main__':\n Discount_Fare()"]
|
['Runtime Error', 'Accepted']
|
['s676690638', 's011833802']
|
[3064.0, 2940.0]
|
[17.0, 19.0]
|
[535, 163]
|
p03219
|
u912650255
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X,Y = map(int,input().split())\nprint(X + Y/2)', 'N,M = map(int,input().split())\n\nprint(N(N-1)//2+M(M-1)//2)\n', 'X,Y = map(int,input().split())\nprint(int(X + Y/2))']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s162569101', 's971218214', 's574473725']
|
[2940.0, 3060.0, 2940.0]
|
[17.0, 20.0, 17.0]
|
[45, 59, 50]
|
p03219
|
u912862653
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X, Y = map(int, input().split())\nprint(X+Y/2)', 'X, Y = map(int, input().split())\nprint(X+Y//2)']
|
['Wrong Answer', 'Accepted']
|
['s547043590', 's757135858']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[45, 46]
|
p03219
|
u914330401
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X Y = map(int, input().split())\nprint(int(X + Y/2))', 'X, Y = map(int, input().split())\nprint(int(X+Y/2))']
|
['Runtime Error', 'Accepted']
|
['s946691954', 's919294780']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[51, 50]
|
p03219
|
u918009437
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
["if __name__ == '__main__':\n X, Y = map(int, input().split())\n\n print(int(X + y/2))\n\n", "if __name__ == '__main__':\n X, Y = map(int, input().split())\n\n print(int(X+Y/2))"]
|
['Runtime Error', 'Accepted']
|
['s590204584', 's605151373']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[90, 86]
|
p03219
|
u919633157
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['n=int(input())\nt,a=map(int,input().split())\nh=[abs((t-int(i)*6/1000)-a) for i in input().split()]\nprint(h.index(min(h))+1)', 'n=int(input())\nt,a=map(int,input().split())\nh=list(map(int,input().split()))\ntmp=[]\ntmp=[abs(int(t-h[i]*0.006)-a) for i in range(n)]\nprint(tmp.index(min(tmp))+1)\n', 'x,y=map(int,input().split())\nprint(x+y//2)']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s296097738', 's390930862', 's498175327']
|
[2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 18.0]
|
[122, 162, 42]
|
p03219
|
u919730120
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
["def resolve():\n n,m=map(int,input().split())\n py=[[0]*3 for _ in range(m)]\n for i in range(m):\n p,y=map(int,input().split())\n py[i][0],py[i][1],py[i][2]=p,y,i\n py.sort()\n ans=[[''] for _ in range(m)]\n cnt=[0]*(n+1)\n for p,y,i in py:\n cnt[p]+=1\n ans[i]='0'*(6-len(str(p)))+str(p)+'0'*(6-len(str(cnt[p])))+str(cnt[p])\n for i in ans:\n print(i)\n\n\nif __name__ == '__main__':\n resolve()", 'x,y=map(int,input().split())\nprint(x+y//2)']
|
['Runtime Error', 'Accepted']
|
['s168518065', 's589926037']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[442, 42]
|
p03219
|
u921563073
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a,b = map(int,input().split())\nprint(a + (b/2))', 'a,b = map(int,input().split())\nprint(int(a + (b/2)))']
|
['Wrong Answer', 'Accepted']
|
['s460749042', 's806992812']
|
[3060.0, 2940.0]
|
[19.0, 18.0]
|
[47, 52]
|
p03219
|
u921632705
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X,Y = map(int, input().split())\nprint(X + Y/2)', 'X,Y = map(int,input().split())\nprint(X + Y/2)', 'X,Y = map(int,input().split())\nprint(X + Y//2)']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s046925389', 's115727007', 's112374725']
|
[9156.0, 9068.0, 9028.0]
|
[29.0, 29.0, 28.0]
|
[46, 45, 46]
|
p03219
|
u921773161
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
["N, M = map(int, input().split())\nP = [0] * M\nY = [0] * M\ncheck = [[] for i in range(N)]\n\nfor i in range(M):\n P[i], Y[i] = map(int, input().split())\n check[P[i]-1].append(Y[i])\n\nfor i in range(N):\n check[i].sort()\n\nfor i in range(M):\n tmp1 = ('00000' + str(P[i]))[-6:] \n tmp2 = ('00000' + str(check[P[i]-1].index(Y[i])+1))[-6:]\n tmp = tmp1 + tmp2\n print(tmp)\n\n\n", 'a, b = map(int,input().split())\nprint(round(a+b//2))']
|
['Runtime Error', 'Accepted']
|
['s484606123', 's699421845']
|
[3064.0, 2940.0]
|
[17.0, 17.0]
|
[381, 52]
|
p03219
|
u923341003
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
["N, M = map(int, input().split())\np = []\ny = []\nfor i in range(M):\n p1,y1=[int(i) for i in input().split()]\n p.append(p1)\n y.append(y1)\nans = [0 for _ in range(M)]\nfor idx in range(M):\n ans[idx] = [idx, p[idx], y[idx]]\nans = sorted(ans, key=lambda x: x[1])\nans = sorted(ans, key=lambda x: x[2])\nfor idx in range(M):\n if idx == 0:\n ans[idx][2] = 1\n else:\n if ans[idx][1] == ans[idx-1][1]:\n ans[idx][2] = ans[idx-1][2] + 1\n else:\n ans[idx][2] = 1\nans = sorted(ans, key=lambda x: x[0])\nfor idx in range(M):\n print('{:0=6}{:0=6}'.format(ans[idx][1], ans[idx][2]))", 'x, y = map(int, input().split())\nprint(int(x + y/2))']
|
['Runtime Error', 'Accepted']
|
['s828742006', 's345666839']
|
[3188.0, 2940.0]
|
[18.0, 17.0]
|
[622, 52]
|
p03219
|
u927534107
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a,b=map(int,input.split());print(a+b/2)', 'a,b=map(int,input().split());print(int(a+b/2))']
|
['Runtime Error', 'Accepted']
|
['s990400680', 's939639519']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[39, 46]
|
p03219
|
u927764913
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y = map(int,input().split())\nprint(x+y/2)', 'x,y = map(int,input().split())\nprint(int(x+y/2))\n']
|
['Wrong Answer', 'Accepted']
|
['s011983087', 's620997659']
|
[2940.0, 2940.0]
|
[19.0, 17.0]
|
[43, 49]
|
p03219
|
u928784113
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['#!usr/bin/env python\n# -*- coding: utf-8 -*-\nX , Y = map(int, input().split())\nprint("{}".format(X + Y/2))', '# -*- coding: utf-8 -*-\nX,Y= "int(input())","int(input())"\nprint("{}".format(X + 2 //Y))', '#!usr/bin/env python\n# -*- coding: utf-8 -*-\nX , Y = int(input()), int(input())\nprint("{}".format(X+Y//2))', '#!usr/bin/env python\n# -*- coding: utf-8 -*-\nX , Y = map(int, input().split())\nprint("{}".format(X + 2/Y))', '#!usr/bin/env python\n# -*- coding: utf-8 -*-\nX , Y= int(input()), int(input())\nprint("{}".format(X + Y // 2))', 'X,Y = map(int,input().split())\nprint(X+Y//2)']
|
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s096031081', 's524229632', 's763615428', 's766939474', 's880207787', 's931778407']
|
[3060.0, 2940.0, 2940.0, 3060.0, 2940.0, 2940.0]
|
[18.0, 18.0, 18.0, 18.0, 17.0, 17.0]
|
[106, 88, 106, 106, 109, 44]
|
p03219
|
u929793345
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x, y = map(int, input().split())\nprint(x + y / 2)', 'x, y = map(int, input().split())\nprint(x + y // 2)\n']
|
['Wrong Answer', 'Accepted']
|
['s080078782', 's191894520']
|
[9176.0, 9068.0]
|
[25.0, 25.0]
|
[49, 51]
|
p03219
|
u930862022
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a,b = map(int, input().split())\nprint(a + (b/2))', 'x, y = map(int, input().split())\n\nprint(x + int(y/2))']
|
['Wrong Answer', 'Accepted']
|
['s846551910', 's758595761']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[48, 53]
|
p03219
|
u931071094
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a,b = map(int,input().split())\nprint(b/2+a)', 'a=int(input())\nb=int(input())\nprint(a+b/2)', 'a,b = map(int,input().split())\nc = int(a+b/2)\nprint(c)']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s022628974', 's981458981', 's018478147']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[43, 42, 54]
|
p03219
|
u934740772
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['4 54', 'A,B = map(int,input().split())\n\nprint(int(A+B/2))']
|
['Runtime Error', 'Accepted']
|
['s884224251', 's430467000']
|
[3068.0, 2940.0]
|
[17.0, 17.0]
|
[4, 49]
|
p03219
|
u934868410
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y = map(int, input())\nprint(x + int(y/2))', 'x,y = map(int, input().split())\nprint(x + int(y/2))']
|
['Runtime Error', 'Accepted']
|
['s489069348', 's799281377']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[43, 51]
|
p03219
|
u940279019
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X,Y = map(int, input().split())\nY = 2/Y\nx = X+Y\nprint(x)', 'n = int(input())\nt,a = map(int,input().split())\nh = list(map(int,input().split()))\ntmp = 1000000\nans = 0\n\nfor i in range(n):\n c = t - h[i] * 0.006\n d = a - c\n if d < 0:\n d = -d\n if d < tmp:\n tmp = d\n ans = i + 1\nprint(ans)', 'X,Y = map(int, input().split())\nY = Y/2\nx = X+Y\nprint(x)', 'n = int(input())\nt,a = map(int,input().split())\nh = list(map(int,input().split()))\ntmp = 1000000\nans = 0\nfor i in range(n):\n c = t - h[i] * 0.006\n d = a - c\n if d < 0:\n d = -d\n if d < tmp:\n tmp = d\n ans = i + 1\nprint(ans)\n', 'X,Y = map(int, input().split())\nY = 2/Y\nprint(int X + Y/2)', 'n = int(input())\nt,a = map(int,input().split())\nh = list(map(int,input().split()))\ntmp = 1000000\nans = 0\nfor i in range(n):\n c = t - h[i] * 0.006\n d = a - c\n if d < 0:\n d = -d\n if d < tmp:\n tmp = d\n ans = i + 1\nprint(ans)', 'X,Y = map(int, input().split())\nprint(int X + Y/2)', 'X,Y = map(int, input().split())\nprint(int (X + Y/2))']
|
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s086554396', 's154040410', 's307165181', 's644321013', 's655437112', 's830405212', 's848563035', 's863454306']
|
[2940.0, 3064.0, 2940.0, 3060.0, 2940.0, 3064.0, 2940.0, 3060.0]
|
[18.0, 18.0, 17.0, 18.0, 17.0, 17.0, 17.0, 19.0]
|
[56, 235, 56, 235, 58, 234, 50, 52]
|
p03219
|
u945460548
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X, Y = (int(x) for x in input().split())\nprint (X+Y/2)', "X, Y = (int(x) for x in input().split())\nans = X+Y/2\nprint('{:.0f}'.format(ans))"]
|
['Wrong Answer', 'Accepted']
|
['s243946267', 's641652419']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[54, 80]
|
p03219
|
u951601135
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['N=int(input())\nT,A=map(int,input().split())\nH_list=list(map(int,input().split()))\na=list(map(lambda x:abs((T-x*0.006)-A), H_list))\n#print(a)\n#print(min(a))\nprint(a.index(min(a))+1)', 'N=int(input())\nT,A=map(int,input().split())\nH_list=list(map(int,input().split()))\na=list(map(lambda x:abs(A-(T-x*0.006)), H_list))\n#print(a)\nprint(min(a))', 'x,y=map(int,input().split())\nprint(x+(y//2))']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s899874123', 's947124090', 's738987512']
|
[3060.0, 3060.0, 2940.0]
|
[18.0, 18.0, 18.0]
|
[180, 154, 44]
|
p03219
|
u953020348
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['nums = list(map(int, input().split()))\nans=nums[0]+nums[1]/2\nprint(ans)\n', 'nums = list(map(int, input().split()))\nans=nums[0]+nums[1]/2\nansx=int(ans)\nprint(ansx)\n']
|
['Wrong Answer', 'Accepted']
|
['s415057931', 's648153346']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[72, 87]
|
p03219
|
u956194864
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y = map(int,input())\n\nprint(x+y//2)', 'x,y = map(int,input().split())\n\nprint(x+y//2)']
|
['Runtime Error', 'Accepted']
|
['s965158465', 's203968381']
|
[3188.0, 2940.0]
|
[19.0, 17.0]
|
[37, 45]
|
p03219
|
u957722693
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a,b=map(int(input().split()))\nprint(int(a+b/2))', 'a,b=map(int,input().split())\nprint(int(a+b/2))']
|
['Runtime Error', 'Accepted']
|
['s664453417', 's799988176']
|
[2940.0, 2940.0]
|
[17.0, 18.0]
|
[47, 46]
|
p03219
|
u957872856
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a, b = map(int,input().split())\nprint(a+b/2)', 'a, b = map(int,input().split())\nprint(int(a+b/2))']
|
['Wrong Answer', 'Accepted']
|
['s478677007', 's722731465']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[44, 49]
|
p03219
|
u958506960
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x, y = int(input().split())\nprint(x + (y//2))', 'x, y = map(int, input().split())\nprint(x + (y//2))']
|
['Runtime Error', 'Accepted']
|
['s981297748', 's493975431']
|
[9032.0, 9092.0]
|
[20.0, 25.0]
|
[45, 50]
|
p03219
|
u959651981
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y = map(int,input().split())\nprint(x+y/2)\n\n', 'x,y = map(int,input().split())\nprint(int(x+y/2))\n']
|
['Wrong Answer', 'Accepted']
|
['s628345418', 's388455147']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[45, 49]
|
p03219
|
u961955351
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X,Y = map(int,input().split())\nY = Y/2\nz = Z + Y\nprint(z)', '\n# coding: utf-8\n\n# In[1]:\n\n\nx,y = map(int,input().split())\n\n\n# In[2]:\n\n\ny = y/2\n\n\n# In[3]:\n\n\nz = x + y\n\n\n# In[4]:\n\n\nprint(z)\n\n', '\n# coding: utf-8\n\n# In[1]:\n\n\nx,y = map(int,input().split())\n\n\n# In[2]:\n\n\ny = y/2\n\n\n# In[3]:\n\n\nz = x + y\n\n\n# In[8]:\n\n\nprint(int(z))\n\n']
|
['Runtime Error', 'Wrong Answer', 'Accepted']
|
['s152648005', 's545353935', 's156400359']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[57, 127, 132]
|
p03219
|
u962619447
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X,Y = map(int, input().split())\nprint(X+Y/2)', 'X,Y = map(int, input().split())\nprint(int(X+Y/2))']
|
['Wrong Answer', 'Accepted']
|
['s074002089', 's739286435']
|
[2940.0, 2940.0]
|
[17.0, 19.0]
|
[44, 49]
|
p03219
|
u963903527
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a,b=map(int,input().split()); print(a+b/2)', 'a,b=map(int,input().split()); print(int(a+b/2))']
|
['Wrong Answer', 'Accepted']
|
['s801775331', 's640227065']
|
[3188.0, 2940.0]
|
[19.0, 17.0]
|
[42, 47]
|
p03219
|
u965033073
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a,b=map(int, input().split())\nprint(a + b / 2)', 'a,b=map(int, input().split())\nprint(a+b/2)', 'a,b=map(int, input().split())\nc = b / 2\nprint(a + c)', 'a,b=map(int, input().split())\nc = b / 2\nprint(int(a + c))\n\n']
|
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s379013678', 's471657775', 's952651363', 's382675726']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 17.0, 17.0]
|
[46, 42, 52, 59]
|
p03219
|
u968846084
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y=map(int,input().split())\nprint(x+y/2)', 'x,y=map(int,input().split())\nprint(int(x+y/2))']
|
['Wrong Answer', 'Accepted']
|
['s859542442', 's952632326']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[41, 46]
|
p03219
|
u970197315
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y = map(int,input().split())\n\nprint(x + y/2)', 'x,y=map(int,input().split())\nprint(x+y//2)']
|
['Wrong Answer', 'Accepted']
|
['s561683076', 's664466122']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[46, 42]
|
p03219
|
u972658925
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y = map(int,input().split())\nprint(x+0.5*y)', 'x,y = map(int,input().split())\nprint(x+int(0.5*y))']
|
['Wrong Answer', 'Accepted']
|
['s392357583', 's712182491']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[45, 50]
|
p03219
|
u972892985
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y = (int, input().split())\nprint(x+y//2)', 'x,y = map(int, input().split())\nprint(x+y//2)']
|
['Runtime Error', 'Accepted']
|
['s161456749', 's342688086']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[42, 45]
|
p03219
|
u973991908
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a,b=map(int,input().split())\nprint(a+b/2)', 'a,b=map(int,input().split())\nprint(a+b//2)\n']
|
['Wrong Answer', 'Accepted']
|
['s538079090', 's788146152']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[41, 43]
|
p03219
|
u977389981
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a, b = map(int, input().split())\nprint(a + b/2)', 'a = int(input())\nb = int(input())/2\nprint(a+b)', 'X, Y = map(int, input().split())\nprint(X + Y // 2)']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s179291479', 's551281458', 's411125116']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 18.0, 17.0]
|
[47, 46, 50]
|
p03219
|
u977646790
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X, Y =(int(i),for i in input().split())\nprint(X+(Y/2))', 'X, Y =(int(i) for i in input().split())\nprint(X+Y/2)', 'X, Y =(int(i) for i in input().split())\nprint(X+Y/2)', 'X,Y=(int(i) for i in input().split())\nprint(X+Y/2)', 'X, Y =(int(i) for i in input().split())\nprint(int(X+Y/2))']
|
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s206738307', 's242199101', 's445155472', 's782838562', 's856293602']
|
[2940.0, 2940.0, 2940.0, 2940.0, 3188.0]
|
[17.0, 19.0, 17.0, 17.0, 18.0]
|
[54, 52, 52, 50, 57]
|
p03219
|
u980492406
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['a,b = map(int,input().split())\nprint(a + b/2)', 'a,b = map(int,input().split())\nprint(int(a + b/2))']
|
['Wrong Answer', 'Accepted']
|
['s339884056', 's651973385']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[45, 50]
|
p03219
|
u983918956
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X,Y = map(int,input().split())\nprint(X + Y/2)', 'X, Y = map(int,input().split())\nans = X + Y//2\nprint(ans)']
|
['Wrong Answer', 'Accepted']
|
['s734936468', 's012497161']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[45, 57]
|
p03219
|
u987637902
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['# A Discount Fare\nX, Y = map(int, input().split())\nprint(X + (Y/2))\n', 'X, Y = map(int, input().split())\nprint(X + (Y//2))']
|
['Wrong Answer', 'Accepted']
|
['s827915338', 's801353212']
|
[9108.0, 9112.0]
|
[28.0, 27.0]
|
[68, 50]
|
p03219
|
u989326345
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X,Y=map(int,input().split())\nfare=X+Y/2\nprint(fare)', 'X,Y=map(int,input().split())\nfare=int(X+Y/2)\nprint(fare)\n']
|
['Wrong Answer', 'Accepted']
|
['s990671415', 's926658598']
|
[2940.0, 2940.0]
|
[18.0, 17.0]
|
[51, 57]
|
p03219
|
u989817703
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x = int(input())\ny = int(input())\n\nprint(x + y/2)', 'n = int(input())\nt, a = tuple(map(int, input().split()))\nh = list(map(int, input().split()))\nmine = 1000\nmini = 0\nd=[0 for i in range(n)]\ndef tmp(x):\n return t - 0.006*x\n\nfor i in range(n):\n d[i] = abs( a - tmp(h[i]) )\n if mine > d[i]:\n mine = d[i]\n mini = i\n\nprint(mini+1)', 'x, y = tuple(map(int, input().split()))\n\nprint(x + y/2)', 'X = int(input())\nY = int(input())\n\nprint(X + Y/2)', 'x, y = tuple(map(int, input().split()))\n\nprint(int(x + y/2))']
|
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
|
['s060358534', 's131771241', 's276130159', 's733054963', 's518758403']
|
[2940.0, 3188.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 18.0, 17.0, 18.0, 18.0]
|
[49, 296, 55, 49, 60]
|
p03219
|
u992910889
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X,Y=map(int,input().split())\nprint(X+Y/2)', 'X,Y=map(int,input().split())\nprint(X+Y//2)']
|
['Wrong Answer', 'Accepted']
|
['s558095416', 's441712093']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[41, 42]
|
p03219
|
u994988729
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x_y=input().split()\nx=int(x_y[0])\ny=int(x_y[1])\nprint(x+y/2)', 'a,b=map(int,input().split())\nprint(a+int(b/2))']
|
['Wrong Answer', 'Accepted']
|
['s130718845', 's401365563']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[60, 46]
|
p03219
|
u995062424
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x, y = map(int, input().split())\n\nprint(x+y//c)', 'x, y = map(int, input().split())\n\nprint(x+y//c)', 'x, y = map(int, input().split())\nprint(x + y/c)', 'x,y = map(int,input().split())\n\nprint(x+y//2)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s362689546', 's566021519', 's941634748', 's578744227']
|
[2940.0, 2940.0, 2940.0, 2940.0]
|
[18.0, 17.0, 17.0, 17.0]
|
[47, 47, 47, 45]
|
p03219
|
u995102075
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['X, Y = map(int, input())\n\nprint(X + int(Y / 2))', 'X, Y = map(int, input().split())\n\nprint(X + int(Y / 2))\n']
|
['Runtime Error', 'Accepted']
|
['s015465001', 's232601766']
|
[2940.0, 2940.0]
|
[17.0, 17.0]
|
[47, 56]
|
p03219
|
u995124795
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
["x, y = map(int(), input().split(' '))\nprint(x + y // 2)\n", "x, y = map(int(), input().split(' '))\nprint(x + y / 2)", "x, y = map(int, input().split(' '))\nprint(x + y // 2)\n"]
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s777207884', 's866527865', 's255469849']
|
[2940.0, 3188.0, 2940.0]
|
[18.0, 19.0, 20.0]
|
[56, 54, 54]
|
p03219
|
u996434204
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['N=int(input())\n\nT,A=map(int,input().split())\n\nmin=5000\n\nH=[int(x) for x in input().split()]\n\nfor i in range(N):\n #print(abs(A-(T-H[i]*0.006)))\n if abs(A-(T-H[i]*0.006)) <= min:\n min=abs(A-(T-H[i]*0.006))\n buf=i+1\n\nprint(buf)', 'x,y=map(int,input().split())\n\nprint(x+y//2)']
|
['Runtime Error', 'Accepted']
|
['s347027487', 's352182506']
|
[3060.0, 3064.0]
|
[17.0, 17.0]
|
[244, 43]
|
p03219
|
u996665352
| 2,000
| 1,048,576
|
There is a train going from Station A to Station B that costs X yen (the currency of Japan). Also, there is a bus going from Station B to Station C that costs Y yen. Joisino got a special ticket. With this ticket, she can take the bus for half the fare if she travels from Station A to Station B by train and then travels from Station B to Station C by bus. How much does it cost to travel from Station A to Station C if she uses this ticket?
|
['x,y=map(int,input().split())\nprint(x+y/2)', 'x,y=map(int,input().split())\nprint(int(x+y/2)', 'x,y=map(int,input().split())\nprint(int(x+y/2))']
|
['Wrong Answer', 'Runtime Error', 'Accepted']
|
['s830759193', 's838737176', 's487515586']
|
[2940.0, 2940.0, 2940.0]
|
[17.0, 17.0, 17.0]
|
[41, 45, 46]
|
p03220
|
u001041019
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
['t,a=map(int,input().split())\nli = list(map(int,input().split()))\n\nlistT=[0]*n\nfor i in range(n):\n listT[i]=t-0.006*li[i]\n#print(listT)\nmin=abs(listT[0]-a)\n#print(listT[0]-a)\n#print(min)\nans=1\nfor i in range(n):\n if min>abs(a-listT[i]):\n min=abs(listT[i])\n ans=i+1\n\nprint(ans)', 'n=int(input())\nt,a=map(int,input().split())\nli = list(map(int,input().split()))\n\nlistT=[0]*n\nfor i in range(n):\n listT[i]=t-0.006*li[i]\n#print(listT)\nmin=abs(listT[0]-a)\n#print(listT[0]-a)\n#print(min)\nans=1\nfor i in range(n):\n if min>abs(a-listT[i]):\n min=abs(a-listT[i])\n ans=i+1\n\nprint(ans)']
|
['Runtime Error', 'Accepted']
|
['s189965243', 's162848948']
|
[3064.0, 3064.0]
|
[17.0, 19.0]
|
[283, 300]
|
p03220
|
u007263493
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
['n = int(input())\nt,a = map(int,input().split())\nh = list(map(int,input().split()))\nans = []\nfor i in range(n):\n ans.append(abs(a-(t-h[i]*6/1000))\nprint(ans.index(min(ans))+1)', 'n = int(input())\nt,a = map(int,input().split())\nh = list(map(int,input().split()))\nans = []\nfor i in range(n):\n ans.append(abs(a-(t-h[i]*6/1000)))\nprint(ans.index(min(ans))+1)']
|
['Runtime Error', 'Accepted']
|
['s011370473', 's113962299']
|
[2940.0, 3060.0]
|
[17.0, 18.0]
|
[178, 179]
|
p03220
|
u010437136
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
["import sys\ndef main():\n ws = sys.stdin.readline().strip().split()\n n = int(ws[0])\n m = int(ws[1])\n ls_a = []\n ls_b = [[] for i in range(n)]\n for i in range(M):\n p,y = map(int, sys.stdin.readline().strip().split())\n ls_a.append([p,y])\n ls_b[p-1].append(y)\n for i in range(n):\n ls_b[i].sort()\n for i in range(m):\n print(str(ls_a[i][0]).zfill(6) + str(ls_b[ls_a[i][0]-1].index(ls_a[i][1])+1).zfill(6))\nif __name__ == '__main__':\n main()", 'import io\nimport sys\n\nimport sys\ndef solve(T,A,listH):\n sa = 1000\n for x in range(len(listH)):\n if sa >= abs(A - (T - (int(listH[x]) * 0.006))):\n sa = abs(A - (T - (int(listH[x]) * 0.006)))\n a = x+1\n return a\n\ndef readQuestion():\n\n line1 = sys.stdin.readline().rstrip()\n line2 = sys.stdin.readline().rstrip()\n list1 = line2.split(" ")\n line3 = sys.stdin.readline().rstrip()\n list2 = line3.split(" ")\n return int(list1[0]),int(list1[1]),list2\n\ndef main():\n t,a,h = readQuestion()\n answer = solve(t,a,h)\n print(answer)\n \nif __name__ == \'__main__\':\n main()']
|
['Runtime Error', 'Accepted']
|
['s957358352', 's505840027']
|
[3064.0, 3064.0]
|
[18.0, 18.0]
|
[495, 624]
|
p03220
|
u013605408
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
['N = int(input())\nT,A = map(int,input().split())\nH = [int(i) for i in input().split()]\nfor i in range(len(H)):\n H[i] = abs(T - H[i] * 0.006 - A)\nprint(H.index(min[H])+1)', 'N = int(input())\nT,A = map(int,input().split())\nH = [int(i) for i in input().split()]\nfor i in range(N):\n H[i] = abs(T - H[i] * 0.006 - A)\nprint(H.index(min[H])+1)', 'N = int(input())\nT,A = map(int,input().split())\nH = [int(i) for i in input().split()]\nfor i in range(len(H)):\n H[i] = T - H[i] * (0.006 - 1)\nprint(H[min(H)]+1)', 'N = int(input())\nT,A = map(int,input().split())\nH = [int(i) for i in input().split()]\nfor i in range(N):\n H[i] = abs(T - H[i] * 0.006 - A)\nprint(H.index(min(H))+1)']
|
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
|
['s059080458', 's458872866', 's522514455', 's700750188']
|
[3060.0, 3060.0, 3060.0, 3060.0]
|
[18.0, 18.0, 19.0, 20.0]
|
[169, 164, 160, 164]
|
p03220
|
u017063101
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
['n=int(input())\nt,a=map(int,input().split())\nh=list(map(int,input().solit()))\nnum=0\ndist=abs(t-h[0]*0.006)\nfor i in range(1,n):\n if dist>abs((t-h[i]*0.006)):\n num=i\nprint(num+1)\n\n', 'n=int(input())\nt,a=map(int,input().split())\nh=list(map(int,input().split()))\nnum=0\ndist=abs(a-(t-h[0]*0.006))\nfor i in range(1,n):\n if dist>abs(a-(t-h[i]*0.006)):\n num=i\n dist=abs(a-(t-h[i]*0.006))\nprint(num+1)\n']
|
['Runtime Error', 'Accepted']
|
['s387183589', 's406104732']
|
[9100.0, 9148.0]
|
[21.0, 26.0]
|
[188, 228]
|
p03220
|
u021548497
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
['n = int(input())\nt, a = map(int, input().split())\nh = list(abs(t-0.006*int(x)-a), t for x, t in zip(input().split(), range(n)))\nk = min(h)\nprint(k[1])', 'n = int(input())\nt, a = map(int, input().split())\nh = list(map(int, input().split()))\n\nans = 0\ntemp = 1000000000000\n\nfor i in range(n):\n if temp > abs(a*1000-1000*t+h[i]*6):\n temp = abs(a*1000-1000*t+h[i]*6)\n ans = i+1\n\nprint(ans)']
|
['Runtime Error', 'Accepted']
|
['s194954087', 's507932198']
|
[2940.0, 9184.0]
|
[17.0, 32.0]
|
[150, 237]
|
p03220
|
u026201125
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
[" def htemp(t, x):\n return float(t - 0.006 * x)\n \n input()\n lt, la = [int(x) for x in input().split()]\n h_ary = [int(x) for x in input().split()]\n \n maxdiff = float('inf')\n goodpoint = 0\n for i, h in enumerate(h_ary):\n diff = abs(la - htemp(lt, h))\n if diff < maxdiff:\n maxdiff = diff\n goodpoint = i\n print(goodpoint+1)", "def htemp(t, x):\n return float(t - 0.006 * x)\n \ninput()\nlt, la = [int(x) for x in input().split()]\nh_ary = [int(x) for x in input().split()]\n \nmaxdiff = float('inf')\ngoodpoint = 0\nfor i, h in enumerate(h_ary):\n diff = abs(la - htemp(lt, h))\n if diff < maxdiff:\n maxdiff = diff\n goodpoint = i\nprint(goodpoint+1)"]
|
['Runtime Error', 'Accepted']
|
['s684658219', 's858855865']
|
[2940.0, 3060.0]
|
[17.0, 18.0]
|
[393, 339]
|
p03220
|
u027675217
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
['n=int(input())\nt,a=map(int,input().split())\nh=list(map(int,input().split()))\nans=[]\nfor i in range(n):\n\tans.append(a-abs(t−h[i]×0.006))\nprint(min(ans))', 'n=int(input())\nt,a=map(int,input().split())\nh=list(map(int,input().split()))\nans=[]\nfor i in range(n):\n\tans.append(abs(abs(a)-abs(t−h[i]×0.006)))\nprint(ans.index(min(ans)+1)', 'n=int(input())\nt,a=map(int,input().split())\nh=list(map(int,input().split()))\nans=[]\nfor i in range(n):\n\tans.append(abs(t-h[i]*0.006-a))\nprint(ans.index(min(ans))+1)\n']
|
['Runtime Error', 'Runtime Error', 'Accepted']
|
['s387444378', 's978806054', 's635192646']
|
[3064.0, 2940.0, 3060.0]
|
[18.0, 17.0, 18.0]
|
[154, 176, 165]
|
p03220
|
u030726788
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
['N=int(input())\nT,A=map(int,input().split())\nH=list(map(int,input().split()))\ndtmin=10**6\nans=-1\nfor i in range(N):\n dt=abs(A-(T-0.006*H[i]))\n if(dt<dtmin):ans=i+1\n \nprint(ans)', 'N=int(input())\nT,A=map(int,input().split())\nH=list(map(int,input().split()))\ndtmin=10**6\nans=-1\nfor i in range(N):\n dt=abs(A-(T-0.006*H[i]))\n if(dt<dtmin):\n ans=i+1\n dtmin=dt\n \nprint(ans)\n']
|
['Wrong Answer', 'Accepted']
|
['s892632451', 's512089999']
|
[3060.0, 3060.0]
|
[18.0, 19.0]
|
[180, 199]
|
p03220
|
u033524082
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
['n=int(inut())\nt,a=map(int,input().split())\nl=list(map(int,input().split()))\nfor i in range(n):\n l[i]=abs(a-(t-l[i]*0.006))\nprint(l.index(min(l))+1)', 'n=int(input())\nt,a=map(int,input().split())\nl=list(map(int,input().split()))\nfor i in range(n):\n l[i]=abs(a-(t-l[i]*0.006))\nprint(l.index(min(l))+1)']
|
['Runtime Error', 'Accepted']
|
['s598615771', 's935403405']
|
[2940.0, 3060.0]
|
[18.0, 18.0]
|
[150, 151]
|
p03220
|
u035445296
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
['N = int(input())\nT,A =map(int, input().split())\nH = list(map(int, input().split()))\ndif = [A-i for i in [int(T-h*0.006) for h in H]]\nprint(dif.index(min(dif)+1))\n', 'n = int(input())\nt,a = map(int, input().split())\nh = list(map(int, input().split()))\nave = [abs(a-(t-i*0.006)) for i in h]\nprint(ave.index(min(ave))+1)']
|
['Runtime Error', 'Accepted']
|
['s236957957', 's876549717']
|
[3060.0, 3060.0]
|
[21.0, 24.0]
|
[162, 152]
|
p03220
|
u037221289
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
["N = int(input())\nT,A = map(int,input().split(' '))\nH = [int(h) for h in input().split(' ')]\n\nbest_place = -float('inf')\n\npoint = 0\nfor i,x in enumerate(H):\n TEM = T-x*0.006\n if abs(A-best_place)> abs(A-TEM):\n point = i\n best_place = TEM\nprint(i+1)", "N = int(input())\nT,A = map(int,input().split(' '))\nH = [int(h) for h in input().split(' ')]\n\nbest_place = -float('inf')\n\npoint = 0\nfor i,x in enumerate(H):\n TEM = T-x*0.006\n if abs(A-best_place)> abs(A-TEM):\n point = i\n best_place = TEM\nprint(point+1)\n \n "]
|
['Wrong Answer', 'Accepted']
|
['s700648065', 's473072060']
|
[3064.0, 3060.0]
|
[18.0, 19.0]
|
[340, 350]
|
p03220
|
u039360403
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
['n=int(input())\nt,a=map(int,input().split())\nList=list(map(int,input().split()))\nond=[]\nfor i in range(n):\n ond.append(abs(t-List[i]*0.006-a))\nprint(ond)\nprint(ond.index(min(ond))+1)\n', 'n=int(input())\nt,a=map(int,input().split())\nList=list(map(int,input().split()))\nond=[]\nfor i in range(n):\n ond.append(abs(t-List[i]*0.006-a))\nprint(ond.index(min(ond))+1)\n']
|
['Wrong Answer', 'Accepted']
|
['s231893456', 's127094039']
|
[3060.0, 3060.0]
|
[19.0, 18.0]
|
[187, 176]
|
p03220
|
u041548949
| 2,000
| 1,048,576
|
A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T-x \times 0.006 degrees Celsius. There are N places proposed for the place. The elevation of Place i is H_i meters. Among them, Princess Joisino orders you to select the place whose average temperature is the closest to A degrees Celsius, and build the palace there. Print the index of the place where the palace should be built. It is guaranteed that the solution is unique.
|
['import numpy as np\n\nn = int(input())\nt, a = map(int,input().split())\nli = list(map(int, input().split())) \n\nt = t*1000\nnpli = np.array(li)\nnpli = t-npli*6\n\nres = npli[0]\nres_num = 1\nfor i in range(n):\n if abs(res) > abs(npli[i]):\n res = npli[i]\n res_num = i+1\nprint(res_num)', 'import numpy as np\n\nn = int(input())\nt, a = map(int,input().split())\nli = list(map(int, input().split())) \n\nt = t*1000\nnpli = np.array(li)\nnpli = t-npli*6\n\nres = npli[0]\nres_num = 1\nfor i in range(n):\n print(abs(res), abs(npli[i]))\n if abs(a) - abs(res) > abs(a) - abs(npli[i]):\n res = npli[i]\n res_num = i+1\nprint(res_num)', 'import numpy as np\n\nn = int(input())\nt, a = map(int,input().split())\nli = list(map(int, input().split())) \n\nt = t*1000\na = a*1000\nnpli = np.array(li)\nnpli = t-npli*6\n\nres = npli[0]\nres_num = 1\nfor i in range(n):\n # print(abs(res),abs(npli[i]),res_num)\n if abs(a-res) > abs(a-npli[i]):\n res = npli[i]\n res_num = i+1\nprint(res_num)']
|
['Wrong Answer', 'Wrong Answer', 'Accepted']
|
['s385779892', 's551640517', 's981150583']
|
[27248.0, 27268.0, 27316.0]
|
[115.0, 118.0, 119.0]
|
[298, 350, 356]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.