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
p03035
u301387419
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A, B = map(int, input().split())\n\nif A => 13:\n print(B)\nelif A => 6:\n print(B/2)\nelse:\n print(0)', 'A, B = map(int, input().split())\n\nif A >= 13:\n print(B)\nelif 12 >= A >= 6:\n print(int(B/2))\nelif 5 >= A >= 0:\n print(0)\n \n']
['Runtime Error', 'Accepted']
['s316832728', 's776048977']
[2940.0, 3060.0]
[17.0, 19.0]
[99, 126]
p03035
u302539304
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a = int(input())\nb = int(input())\n\nif 0 <= a <= 5:\n print(0)\nif 6 <= a <= 12:\n print(b//2)\nif 16 <= a <= 100:\n print(b)\n', 'a = int(input())\nb = int(input())\n\nif a >= 0 and a <= 5:\n print(0)\nif a >= 6 and a <= 12:\n print(b//2)\nif a >= 16 and a <= 100:\n print(b)\n', 'line = input().s...
['Runtime Error', 'Runtime Error', 'Accepted']
['s033429193', 's172228666', 's643254369']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[129, 147, 153]
p03035
u302818391
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a = int(input())\nb = int(input())\nif a >= 13:\n\tprint(b)\nelif a >= 6:\n\tprint(b / 2)\nelse:\n\tprint(0)\n', 'a = int(input())\nb = int(input())\nif a >= 13:\n print(b)\nelif a >= 6:\n print(b / 2)\nelse:\n print(0)', '# coding: utf-8\n# Your code here!\na, b = map(int, input().split())\nif a >= 13:\n\tp...
['Runtime Error', 'Runtime Error', 'Accepted']
['s119541060', 's145982533', 's560664971']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[99, 107, 134]
p03035
u305366205
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A,B = map(int,input().split())\n', 'A,B = map(int,input().split())\n\nif A >= 13:\n print(B)\nelif A >= 6:\n print(B//2)\nelse:\n print(0)\n']
['Wrong Answer', 'Accepted']
['s972735020', 's065184345']
[2940.0, 2940.0]
[17.0, 19.0]
[31, 105]
p03035
u305732215
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a, b = map(int, input().split())\n\nif a, b = map(int, input().split())\n\nif a >= 13:\n print(b)\nelif a >= 6:\n print(int(b/2))\nelse:\n print(0)\n', 'a, b = map(int, input().split())\n\nif a >= 13:\n print(b)\nelif a >= 6:\n print(int(b/2))\nelse:\n print(0)\n']
['Runtime Error', 'Accepted']
['s255109325', 's582733372']
[2940.0, 2940.0]
[17.0, 17.0]
[148, 111]
p03035
u306070611
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A, B = map(int, input().split())\nif A >= 13:\n ans = B\nelif 6 <= A <= 12:\n ans = int(B/2)\nelse:\n ans = 0\n print(ans)', 'A, B = map(int, input().split())\nif A >= 13:\n ans = B\nelif 6 <= A <= 12:\n ans = int(B/2)\nelse:\n ans = 0\nprint(ans)']
['Wrong Answer', 'Accepted']
['s953345056', 's550079201']
[2940.0, 2940.0]
[17.0, 17.0]
[127, 123]
p03035
u307028468
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A, B = map(int,input().split())\nif A < 6:\n print(0)\nelif A > 12:\n print(B)\nelse:\n print(int(B/2)', 'A, B = map(int,input().split())\nif A < 6:\n print(0)\nelif A > 12:\n print(B)\nelse:\n print(int(B/2))\n']
['Runtime Error', 'Accepted']
['s770666526', 's446604862']
[2940.0, 2940.0]
[17.0, 18.0]
[99, 101]
p03035
u308463793
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
["import sys\n\nargvs = sys.argv\n\ndef main(_old, _fee):\n if int(_old) >= 13:\n return int(_fee)\n elif 6 <= int(_old) <= 12:\n return int(_fee) / 2\n else:\n return 0\n \nif __name__ == '__main__':\n print(main(argvs[1], argvs[2]))", "a, b = map(int,input().split())\n\ndef main(_old, _fee):\n if int...
['Runtime Error', 'Accepted']
['s810478929', 's136778581']
[2940.0, 3060.0]
[17.0, 17.0]
[233, 241]
p03035
u312283004
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a, b = map(int, input().split.())\n\nif 13 <= a :\n print(b)\nelif 6 <= a <= 12 :\n print(b/2)\nelse :\n print(0)', 'a, b = map(int, input().split())\n\nif 13 <= a :\n print(b)\nelif 6 <= a <= 12 :\n print(int(b/2))\nelse :\n print(0)\n\n\n']
['Runtime Error', 'Accepted']
['s453156101', 's662627279']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 116]
p03035
u313140205
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['argN, argA, argB, argC, argD = list(map(int,input().split()))\nargS = input()\n\nif argA < argB and argC < argD:\n flgOIKOSI = False\nelif argB < argA and argD < argC:\n flgOIKOSI = False\nelse:\n flgOIKOSI = True\n#print(flgOIKOSI)\n \nif "##" in argS[argA - 1:argC]:\n #print(argS[argA - 1:argC])\n print("No")...
['Runtime Error', 'Accepted']
['s470131360', 's142073492']
[3064.0, 2940.0]
[17.0, 17.0]
[570, 137]
p03035
u319589470
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a.b = map(int,input().split)\nif a >=13:\n print(b)\nelse if 6<=a and a<=13:\n print(b//2)\nelse:\n print(0)', 'a,b = map(int,input().split())\nif a >=13:\n print(b)\nelif 6<=a and a<=13:\n print(b//2)\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s804687188', 's366476143']
[3060.0, 2940.0]
[18.0, 17.0]
[105, 104]
p03035
u325475872
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A,B=map(int, input().split())\nif A >= 13:\n\tprint(B)\nelif 6<=A<=12\n\tprint(B//2)\nelse:\n print(0)', 'A,B=map(int, input().split())\nif A >= 13:\n\tprint(B)\nelif 6<=A<=12\n\tprint(B//2)\nelse:\n print(0)\nA,B=map(int, input().split())\nif A >= 13:\n\tprint(B)\nelif 6<=A<=12:\n\tprint(B//2)\nelse:\n prin...
['Runtime Error', 'Runtime Error', 'Accepted']
['s214552818', 's419722913', 's744066064']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[97, 196, 98]
p03035
u328259252
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['N,M=map(int,input().split())\n\n\nA=[int(i) for i in (input().split(" "))]\n\nA.sort()\n\nBC = [list(map(int,input().split())) for _ in range(M)]\n\nBC.sort(key=lambda x:x[1],reverse=True)\n\nfor b,c in BC:\n A.expend([c]*b)\n if len(A)>2*N:\n break\n\nA.sort(reverse=True)\nsuma=0\n\n# suma+=i\n\nprin...
['Runtime Error', 'Accepted']
['s310774253', 's474438849']
[3064.0, 2940.0]
[17.0, 17.0]
[322, 127]
p03035
u330799501
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b=map(int, input())\n\nif a>=13:\n print(b)\nelif a<=5:\n print(0)\nelse:\n print(b//2)\n', '#k = int(input())\n#s = input()\n#a, b = map(int, input().split())\n#s, t = map(str, input().split())\n#l = list(map(int, input().split()))\n\n\na, b = map(int, input().split())\n\nans = 0\n\nif (a >= 13):\n ans...
['Runtime Error', 'Accepted']
['s762005458', 's130858033']
[2940.0, 9080.0]
[17.0, 24.0]
[92, 332]
p03035
u331128419
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['import numpy as np\n\nN,M = map(int, input().split())\nA_array = np.array([int(i) for i in input().split()])\nCurrent_Min = A_array[A_array.argmin()]\nfor j in range(M):\n B_tmp, C_tmp = map(int,input().split())\n if Current_Min >= C_tmp:\n continue\n for k in range(B_tmp):\n A_array[A_array.ar...
['Runtime Error', 'Accepted']
['s696711544', 's838488385']
[14496.0, 2940.0]
[148.0, 18.0]
[398, 123]
p03035
u344748592
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
["age,cost=list(map(int, input().split()))\nage=x[0]\ncost=x[1]\nif age<=5:\n print('0')\nelif age>=6 and age<=12:\n print(a/2)\nelse:\n print(a)\n", "age,cost =list(map(int, input().split()))\nif age<=5:\n print('0')\nelif age>=6 and age<=12:\n print(a//2)\nelif age>=13:\n print(a)\n", "age,cost= list(map(int, i...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s071494355', 's249606109', 's280200859', 's942412289', 's956311020', 's954172177']
[9092.0, 9124.0, 8824.0, 9000.0, 9084.0, 8916.0]
[28.0, 26.0, 21.0, 28.0, 29.0, 38.0]
[139, 130, 165, 123, 121, 116]
p03035
u344888046
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['n, m = map(int, input().split(" "))\nr = [""] * m\nfor c in range(m):\n r[c] = list(map(int, input().split(" ")))\n\n#print(r)\nac = 0\nfor c in range(n):\n num = c + 1 \n for co in range(m): \n if r[co][0] <= num <= r[co][1]:\n #print("card{} is ok for gate{}".format(num, co))\n ...
['Runtime Error', 'Accepted']
['s449540449', 's370508653']
[3060.0, 2940.0]
[17.0, 17.0]
[427, 118]
p03035
u345483150
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['if A >=13:\n print(B)\nelif A >= 6:\n print(B/2)\nelse:\n print(0)', 'a, b=map(int, input().split())\n\nif a >=13:\n print(b)\nelif a >= 6:\n print(b//2)\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s507211801', 's751571959']
[2940.0, 2940.0]
[17.0, 17.0]
[64, 97]
p03035
u347912669
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['\n\n\nimport sys\n\nn, m = list(map(int, sys.stdin.readline().split()))\ncards = list(map(int, sys.stdin.readline().split()))\ncards.sort()\n\nset = [list(map(int, sys.stdin.readline().split())) for _ in range(m)]\n\n# combinations.sort(key = lambda x: x[1], reverse = True)\ncombinations = []\nfor b, c in set:\n c...
['Runtime Error', 'Accepted']
['s389360496', 's968735153']
[3064.0, 2940.0]
[22.0, 18.0]
[604, 113]
p03035
u350836088
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['n,m = map(int,input().split())\na = [int(s) for s in input().split()]\na.sort()\nb_c = [[int(s) for s in input().split()] for i in range(m)]\ncnt = 0\nfor k in range(m):\n while cnt < b_c[k][0]:\n if a[cnt] <= b_c[k][1]:\n a[cnt] = b_c[k][1]\n cnt += 1\n a.sort()\nprint(sum(a)) \...
['Runtime Error', 'Accepted']
['s217114529', 's412732189']
[3188.0, 2940.0]
[18.0, 17.0]
[320, 119]
p03035
u351399674
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A,B = map(int,input().split())\n\nif A >= 13:\n print(B)\n\nelif A >= 6 and A <= 12:\n print(B/2)\n\nelif A <= 5\n print(0)\n', 'A,B = map(int,input().split())\n\n\nif A >= 13:\n print(B)\n\nelif A >= 6 and A <= 12:\n print(int(B/2))\n\nelse:\n print(0)\n']
['Runtime Error', 'Accepted']
['s640025018', 's736367216']
[2940.0, 2940.0]
[18.0, 17.0]
[124, 124]
p03035
u353919145
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a = int(input())\nb = int(input())\nif 0 <= a <= 5:\n print(0)\nif 6 <= a <= 12:\n print(b//2)\nif 16 <= a <= 100:\n print(b)', 'A = int(input())\nB = int(input())\nif A >= 0 and A <= 5:\n print(0)\nif A >= 6 and A <= 12:\n print(B//2)\nif A >= 13 and A <= 100:\n print(B)', 'a = int(input())\nb = ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s030200961', 's398274480', 's636976735', 's180659341']
[2940.0, 2940.0, 2940.0, 3316.0]
[17.0, 17.0, 17.0, 20.0]
[127, 147, 147, 129]
p03035
u355154595
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b=map(int,input().split())\nif a>12:\n print(int(b))\t\nelif 12>=a>=6:\n print(int(b/2)\nelse:\n print(0)\n', 'a,b=map(int,input().spplit())\nif a>12:\n print(int(b))\t\nelif 12>=a>=6:\n print(int(b/2)\nelse:\n print(0)', 'a,b=map(int,input().split())\nif a>12:\n print(int(b))\t\nelif 12>=a>=6:...
['Runtime Error', 'Runtime Error', 'Accepted']
['s179747798', 's315635776', 's032071597']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[110, 110, 111]
p03035
u356499208
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b = map(int, input().split())\n\nif a >= 13:\n print(b)\nelif: a =< 5:\n print(0)\nelse:\n print(int(b/2))\n ', 'a, b = map(int, input().split())\n \nif a >= 13:\n print(b)\nelif a <= 5:\n print(0)\nelse:\n print(int(b/2))']
['Runtime Error', 'Accepted']
['s345262928', 's527680911']
[2940.0, 2940.0]
[17.0, 18.0]
[109, 107]
p03035
u358957649
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
[' A, B = map(int, input().split())\n\n price = (int)(\n B if A >= 13 else\n B/2 if A >= 6 else\n 0)\n\n print(price) ', "def main():\n A, B = map(int, input().split())\n\n price = B if B >= 13 else B/2 if B >= 6 else 0\n\n return price \n\n\nif __name__ == '__main__'\n print...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s314147903', 's498173261', 's689452011', 's315213447']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[141, 165, 199, 116]
p03035
u359573942
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['g=lambda:map(int,input().split())\n_,m=g()\nml,mr=0,10**5\nfor _ in range(m):\n l,r=g()\n ml=max(ml,l)\n mr=min(mr,r)\nprint([0,mr-ml+1][mr>=ml])\n', 'a,b=map(int,input().split())\nprint(b if a>=13 else b//2 if 6<=a<=12 else 0)\n']
['Runtime Error', 'Accepted']
['s959652563', 's252605796']
[9108.0, 9048.0]
[34.0, 29.0]
[148, 76]
p03035
u360515075
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A, B = map(int, input().split())\n\nprint (B if a>=13 else B//2 if a>= 6 else 0)', 'A, B = map(int, input().split())\n\nprint (B if A>=13 else B//2 if A>= 6 else 0)']
['Runtime Error', 'Accepted']
['s098983614', 's036292904']
[2940.0, 2940.0]
[17.0, 17.0]
[78, 78]
p03035
u364642100
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A, B = map(int, input().sp;it())\nif A>=13:\n print(B)\nelif 6 <= A <= 12:\n print(B//2)\nelse:\n print(0)\n', 'A, B = map(int, input().sp;it())\nif A>=13:\n print(B)\nelif 6 <= A <= 12:\n print(B/2)\nelse:\n print(0)', 'A, B = map(int, input().split())\nif A>=13:\n print(B)\nelif 6 <= A <= 12:\n print(B//2)\...
['Runtime Error', 'Runtime Error', 'Accepted']
['s979368962', 's983373773', 's648604117']
[2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[104, 102, 104]
p03035
u365928729
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['# coding: utf-8\n# Your code here!\nn,m=map(int,input().split(" "))\nmae=0\nusiro=1000000000\nfor i in range(m):\n s,t=map(int,input().split(" "))\n if(mae<=s):\n mae=s\n if(usiro>=t):\n usiro=t\n#print(mae,usiro)\nans=usiro-mae+1\nif(ans<0):\n ans=0\nprint(ans)', '# coding: utf-8\n# Your co...
['Runtime Error', 'Accepted']
['s347842365', 's474483080']
[3064.0, 2940.0]
[18.0, 17.0]
[273, 128]
p03035
u366398972
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b = map(int,input().split())\nif(a >= 13):\n\tprint(b)\nelse if(a >= 6):\n\tprint(b // 2)\nelse:\n\tprint(0)', 'a,b = map(int,input().split())\nif(a >= 13):\n\tprint(b)\nelif(a >= 6):\n\tprint(b // 2)\nelse:\n\tprint(0)']
['Runtime Error', 'Accepted']
['s562426368', 's467173754']
[2940.0, 2940.0]
[17.0, 17.0]
[101, 98]
p03035
u366482170
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b=map(int,input().split())\nif a>=13:\n print(b)\nelif a<13 and a>=6\n print(b//2)\nelse:\n print(0)', 'a,b=map(int,input().split())\nif a>=13:\n print(b)\nelif a<13 and a>=6:\n print(b//2)\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s128829090', 's543928119']
[2940.0, 2940.0]
[17.0, 17.0]
[99, 100]
p03035
u366886346
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['n,m=map(int,input().split())\nl=[]\nr=[]\nfor i in range(m):\n strl,strr=map(int,input().split())\n l.append(strl)\n r.append(strr)\nnum1=max(l)\nnum2=min(r)\nif num1>num2:\n print(0)\nelse:\n print(num2-num1+1)\n', 'a,b=map(int,input().split())\nif a<6:\n print(0)\nelif a<13:\n print(b//2)\nelse...
['Runtime Error', 'Accepted']
['s582431718', 's259000862']
[3060.0, 2940.0]
[17.0, 16.0]
[215, 96]
p03035
u367130284
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['from heapq import*\nn,m=map(int,input().split())\np=sorted(map(int,input().split()))\nheapify(p)\nq=sorted([list(map(int,input().split()))for i in range(m)],key=lambda x:x[1],reverse=1)\n\nfor s,t in q:\n for i in range(s):\n tmp=heappop(p)\n if t>tmp:\n heappush(p,t)\n else:\n ...
['Runtime Error', 'Accepted']
['s087552483', 's157429632']
[3064.0, 2940.0]
[18.0, 17.0]
[403, 100]
p03035
u368796742
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b = map(int,input().split())\nif 13 >= a:\n print(b)\nelif 12 >= a >= 6:\n print(b//2)\nelse:\n print(0)', 'a,b = map(int,input().split())\nif a >= 13:\n print(b)\nelif 12 >= a >= 6:\n print(b//2)\nelse:\n print(0)\n']
['Wrong Answer', 'Accepted']
['s561551769', 's567165591']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 104]
p03035
u374146618
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b=[x for x in input().split()]\nif a>=13:\n print(b)\nelif 6<=a<=12:\n print(b/2)\nelse:\n print(0)', 'a,b=[x for x in input().split()]\nif a>=13:\n print(b)\nelseif 6<=a<=12:\n print(b/2)\nelse:\n print(0)', 'a,b=[int(x) for x in input().split()]\nif a>=13:\n print(b)\nelif 6<=a<=12:\n prin...
['Runtime Error', 'Runtime Error', 'Accepted']
['s035742302', 's223657600', 's347122868']
[3060.0, 2940.0, 3188.0]
[18.0, 17.0, 17.0]
[104, 106, 114]
p03035
u374829922
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['# -*- coding: utf-8 -*-\nl = [0] \nr = [0]\nall_gate_clear = 0\n\n\n#numcard\n\nN, M = map(int, input().split())\ncard_count = range(N+1)\n\n\nfor i in range(1,M+1):\n l_temp,r_temp = map(int, input().split())\n l.append(l_temp)\n r.append(r_temp)\n \nfor gate_num in range(1,M+1):\n \n for card in r...
['Runtime Error', 'Accepted']
['s208527598', 's806776566']
[3064.0, 3060.0]
[18.0, 17.0]
[714, 178]
p03035
u375500286
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b=map(int,input().split())\nif a<=5:\n print(0)\nelif a>=6 and 12<=a:\n print(b/2)\nelse:\n print(b)', ' a,b=map(int,input().split())\n if a<=5:\n print(0)\n elif a>=6 and 12<=a:\n print(b/2)\n else:\n print(b)', 'a,b=map(int,input.split())\nif a<=5:\n print(0)\nelif a>=...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s041252362', 's730069289', 's858048457', 's279681753']
[3060.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 20.0]
[105, 133, 103, 106]
p03035
u375695365
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['int a,b=map(int,input().split())\n\nif a<=5:\n print(0)\nelif a>=12:\n print(b)\nelse:\n print(b//2)', 'a,b=map(int,input().split())\n\nif a<=5:\n print("0")\nelif a<=13:\n print(b)\nelse:\n print(b//2)', 'a,b=map(int,input().split())\n\nif a<=5:\n print(0)\nelif a>12:\n print(b)\nelse:\n p...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s522710815', 's642535031', 's597951641']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[102, 100, 97]
p03035
u376328830
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['\nr,d,x2000 = map(int,input().split())\n\n\nfor i in range(10):\n if i == 0:\n ans = r*x2000-d\n else:\n ans = r*ans-d\n print(ans)\n \n ', 'age,yen = map(int,input().split())\nif age>=13:\n print(yen)\nelif 6<=age<=12:\n print(yen//2)\nelse:\n print(0) ']
['Runtime Error', 'Accepted']
['s119185212', 's110641967']
[2940.0, 2940.0]
[17.0, 17.0]
[155, 116]
p03035
u376380063
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['n,m = map(int,input().split())\nl = []\nr = []\n\nfor i in range(m):\n a,b = map(int,input().split())\n l.append(a)\n r.append(b)\n\n\nif min(r) < max(l):\n print(min(r) - max(l) + 1)\nelse:\n print(0)', 'a,b = map(int,input().split())\n \nif a >= 13:\n print(b)\nelif a>= 6:\n print(int(b/2))\nel...
['Runtime Error', 'Accepted']
['s773488736', 's908506519']
[3060.0, 2940.0]
[17.0, 17.0]
[203, 108]
p03035
u376904820
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['import sys\n\nn,m = input().split()\nn,m = int(n), int(m)\n\n\nlist = []\n\ncount = 0\nlMin, rMax = -1, -1\n\nfor i in range(0,m) :\n l, r = input().split()\n\n list.append((int(l),int(r)))\n\n if lMin == -1 and rMax == -1:\n lMin, rMax = list[i]\n else:\n if lMin < list[i][0] :\n ...
['Runtime Error', 'Accepted']
['s892113002', 's132198278']
[3064.0, 2940.0]
[17.0, 17.0]
[413, 142]
p03035
u377265351
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['[A,B]=list(map(int,input().split(" ")))\nif A>=13:\n print(B)\nelif A>=6:\n print(B/2)\nelse\n print(0)', '[A,B]=list(map(int,input().split(" ")))\nif A>=13:\n print(B)\nelif A>=6:\n print(int(B/2))\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s707740089', 's704279768']
[2940.0, 2940.0]
[18.0, 17.0]
[106, 112]
p03035
u379716238
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['N, M = map(int,input().split())\nL = [0] * M\nR = [0] * M\nfor i in range(M):\n L[i], R[i] = map(int, input().split())\n\nif min(R) >= max(L):\n print(min(R) - max(L) + 1)\nelse:\n print(0)', 'A, B = map(int,input().split())\nif A > 12:\n print(B)\nelif 6 <= A and A <= 12:\n print(int(B/2))\nelse:\n ...
['Runtime Error', 'Accepted']
['s883709819', 's659034822']
[3060.0, 2940.0]
[17.0, 17.0]
[189, 119]
p03035
u380793800
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a, b = map(int, input().split())\nif a >= 13:\n print(B)\nelse if a >= 6 and a < 12:\n print(B/2)\nelse:\n print(0)\n \n', 'a, b = map(int, input().split())\nif a >= 13:\n print(b)\nelif (a >= 6 and a <= 12):\n print(b//2)\nelse:\n print(0)\n']
['Runtime Error', 'Accepted']
['s953509866', 's431579524']
[2940.0, 3064.0]
[17.0, 27.0]
[116, 120]
p03035
u382905693
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['import numpy as np\nimport sys\nsys.setrecursionlimit(10**6) \n\ndef main(args):\n a = int(args[0])\n b = int(args[1])\n if 6 <= a and a <= 12:\n v = b//2\n elif a <= 5:\n v = 0\n else:\n v = b\n print(v)\n\nmain(sys.argv[1:3])', 'import numpy as np\nfrom sys import stdin\nsys.s...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s043490186', 's172084412', 's231443396', 's430588054', 's431643504', 's478328197', 's523249368', 's557528990', 's589806068', 's771511466', 's781792025', 's788758574', 's821572045', 's826695367', 's902735943', 's936806186', 's038330364']
[12420.0, 21864.0, 12392.0, 12504.0, 14540.0, 12484.0, 14276.0, 12484.0, 12436.0, 12768.0, 20512.0, 2940.0, 3064.0, 12392.0, 18508.0, 18496.0, 21444.0]
[150.0, 344.0, 154.0, 148.0, 156.0, 149.0, 151.0, 150.0, 154.0, 162.0, 440.0, 17.0, 17.0, 150.0, 249.0, 273.0, 342.0]
[251, 276, 252, 274, 270, 285, 340, 282, 343, 503, 221, 222, 289, 343, 290, 252, 298]
p03035
u382907940
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b = map(int,input().split())\nif a >12:print(b)\nelse if a <6:print(b//2)\nelse: print(0)', 'a,b = map(int,input().split())\nif a >12:print(b)\nelif a >5:print(b//2)\nelse: print(0)']
['Runtime Error', 'Accepted']
['s302799735', 's598229682']
[2940.0, 2940.0]
[17.0, 17.0]
[88, 85]
p03035
u385244248
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
["A, B =list (map (int, input().split(' ') ) )\nif A > = 13 :\n print(B)\nelif A < = 5 :\n print(0)\nelse :\n print(B/2)\n", 'A, B =map(int, input().split() )\nif A >= 13 :\n print(B)\nelif A<=5:\n print(0)\nelse :\n print(B//2)']
['Runtime Error', 'Accepted']
['s034716651', 's289461581']
[2940.0, 2940.0]
[17.0, 17.0]
[122, 105]
p03035
u388463553
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A=input("Enter Age")\nB=input("Enter Fee")\nif B%2==0 and (B>=2 and B<= 1000) and (A>=0 and A<=100):\n\tif A>=13:\n\t\tprint(B)\n\telif A>=6 and A<=12:\n\t\tprint(int(B/2))\n\telif A<=5:\n\t\tprint(0)\nelse:\n\tprint("Error")', 'import sys\na=sys.stdin.readline()\nres = [int(i) for i in a.split() if i.isdigit()] \nA,...
['Runtime Error', 'Accepted']
['s046496776', 's219696487']
[3060.0, 3064.0]
[17.0, 17.0]
[205, 277]
p03035
u390170391
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['l = list(map(int,input().split()))\na = l[0]\nb = l[1]\nif a >= 13:\n print(b)\nif a <13 and a>= 6:\n print(b//2)\nelse:\n print(0)\n', 'l = list(map(int,input().split()))\na = l[0]\nb = l[1]\nif a >= 13:\n print(b)\nif a <13 and a>= 6:\n print(b/2)\nelse:\n print(0)', 'l = list(map(int,input().split()))\na = l...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s141570605', 's517699403', 's007225745']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[127, 125, 129]
p03035
u390883247
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['r,D,x2000 = map(int,input().split())\nxi = x2000\nfor i in range(1,11):\n xi = r * xi - D\n print(xi)\n', 'A,B = map(int,input().split())\nx = 0\nif A >= 13:\n x = A\nelif 6 <= A and A <= 12:\n x = A//2\nelse:\n x = 0\nprint(x)\n', '#!/usr/bin/python3\nA,B = map(int,input().split())\nx = 0\nif A >= 13:...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s247645524', 's281648109', 's199277230']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[104, 122, 141]
p03035
u398846051
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A, B = map(int, input().split())\nif A >= 13:\n print(B)\nelse A >= 6:\n print(B//2)\nelse:\n print(0)', 'A, B = map(int, input().split())\nif A >= 13:\n print(B)\nelif A >= 6:\n print(B//2)\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s223935939', 's547009947']
[2940.0, 2940.0]
[17.0, 17.0]
[99, 99]
p03035
u401686269
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A,B=map(int,input().split())\nif A>=13:print(A)\nelif 6<=A and A<13:print(A//2)\nelse:print(0)', 'A,B=map(int,input().split())\nif A>=13:print(B)\nelif 6<=A and A<13:print(B//2)\nelse:print(0)']
['Wrong Answer', 'Accepted']
['s448943616', 's723994131']
[9136.0, 9072.0]
[27.0, 27.0]
[91, 91]
p03035
u401711994
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['N,M = map(int, input().split())\nA = list(map(int,input().split()))\nA.sort()\nmax = 0 \n\nfor i in range(M):\n B,C = map(int, input().split())\n for j in range(B) :\n if C >= A[j] : \n A[j] = C\n else :\n continue\n A.sort()\nsum = 0 \nfor i in range(N):\n sum += A[i]...
['Runtime Error', 'Accepted']
['s886297414', 's918614758']
[9028.0, 9076.0]
[24.0, 29.0]
[316, 125]
p03035
u403551852
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['n,m = map(int,input().split())\ngates = [list(map(int,input().split())) for _ in range(m)]\nl = []\nr = []\nfor gate in gates:\n l.append(gate[0])\n r.append(gate[1])\nans = min(r)+1 - max(l)\nprint(ans if ans > 0 else 0)\n', 'a,b = map(int,input().split())\nif a >= 13:\n print(b)\nelif a >= 6:\n print(b/...
['Runtime Error', 'Accepted']
['s631648142', 's599896080']
[3060.0, 3064.0]
[18.0, 17.0]
[220, 110]
p03035
u407801149
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['age, max_money = int(input().split())\nif age>= 13:\n print(max_money)\nelif age>=6 and age<=12:\n print(max_money//2)\nelif age<=5:\n print("0")', 'age, max_money = map(int, input().split())\nif age>= 13:\n print(max_money)\nelif age>=6 and age<=12:\n print(max_money//2)\nelif age<=5:\n print("0")']
['Runtime Error', 'Accepted']
['s573828355', 's371950129']
[2940.0, 2940.0]
[17.0, 17.0]
[142, 147]
p03035
u409254176
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b = map(int,input().split())\nif a>=13:\n\tprint(b)\nelif a<=5:\n\tprint(0)\nelif a>=6 and a<=12 \n\tprint(b/2)', 'x,y = map(int,input().split())\nif (x<=5):\n print(y)\nelif (x>=13):\n print(0)\nelse :\n print(y/2)', '\na,b = map(int,input().split())\nif a>=13:\n\tprint(b)\nelif a<=5:\n\tprint(0)\nelse:\n...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s123394232', 's150710201', 's419337886', 's973176576', 's779521823']
[3060.0, 2940.0, 3064.0, 2940.0, 3064.0]
[19.0, 18.0, 17.0, 17.0, 17.0]
[104, 103, 182, 182, 94]
p03035
u412255932
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['import sys\ninput = sys.stdin.readline\n\nN, M = map(int, input().strip().split())\nA = list(map(int, input().strip().split()))\nfor i in range(M):\n B, num = map(int, input().strip().split())\n for j in range(B):\n A[A.index(min(map(lambda x: x - num, nums))+num)] = max(num,x)\nprint(sum(A))', 'A, B = m...
['Runtime Error', 'Runtime Error', 'Accepted']
['s126663069', 's758146061', 's697468024']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[297, 115, 121]
p03035
u419877586
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A, B=map(int, input().split())\nans=B//2\nif B=>13:\n ans=B\nelif B<=5:\n ans=0\nprint(ans)', 'A, B=map(int, input().split())\nif A<=5:\n print(0)\nelif 6<=A<=12:\n print(B//2)\nelse:\n print(B)']
['Runtime Error', 'Accepted']
['s440327207', 's735697181']
[2940.0, 2940.0]
[17.0, 17.0]
[87, 96]
p03035
u424763114
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['def cal(A, B):\n if A >= 13:\n return B\n elif 6 <= A and A <= 12:\n return B/2\n elif 0 <= A and A <= 5:\n return 0\n\nif __name__ == "__main__":\n print(cal(int(input()), int(input())))', 'def cal(A, B):\n if A >= 13 and A <= 100:\n return B\n elif 6 <= A and A <= 12:\n...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s286331848', 's453145154', 's745883025', 's747188448', 's813452771', 's851720206', 's880625669', 's319069241']
[2940.0, 2940.0, 3060.0, 3060.0, 3060.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 18.0, 17.0, 18.0, 17.0, 17.0, 18.0]
[211, 224, 220, 149, 214, 210, 200, 397]
p03035
u431347811
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['r,d,x=input().split()\nm = int(x)\nfor i in range(1, 11):\n m = int(r) * int(m) - int(d)\n print(int(m))', 'a,b=input().split()\nif int(a) >= 13:\n print(b)\nelif int(a) >= 6:\n m = int(b) / 2\n print(int(m))\nelse:\n print("0")']
['Runtime Error', 'Accepted']
['s326386978', 's479203052']
[3188.0, 2940.0]
[18.0, 17.0]
[106, 118]
p03035
u437215432
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['# ABC127A\n\na, b = map(int, input().split()\nif a >= 13:\n print(b)\nelif a >= 6:\n print(b / 2)\nelse:\n print(0)\n', '# ABC127A\n\na, b = map(int, input().split())\nif a >= 13:\n print(b)\nelif a >= 6:\n print(b // 2)\nelse:\n print(0)\n']
['Runtime Error', 'Accepted']
['s541017098', 's439009734']
[2940.0, 2940.0]
[18.0, 17.0]
[117, 119]
p03035
u442948527
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b=map(int,input().split())\nprint([[0,b//2][a>5,b][a>12])', 'a,b=map(int,input().split())\nprint([[0,b//2][a>5],b][a>12])']
['Runtime Error', 'Accepted']
['s257051270', 's788372689']
[8896.0, 9020.0]
[23.0, 27.0]
[58, 59]
p03035
u450180547
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['age, price = map(int, input().split())\nif age >= 13:\n\tprint(price)\nelif: 6 <= age <= 12:\n\tprint(price // 2)\t\nelse:\n\tprint(0)', 'age, price = map(int, input().split())\nif age >= 13:\n\tprint(price)\nelif 6 <= age <= 12:\n\tprint(price // 2)\t\nelse:\n\tprint(0)']
['Runtime Error', 'Accepted']
['s030397329', 's317318151']
[2940.0, 2940.0]
[17.0, 18.0]
[124, 123]
p03035
u453526259
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['N, M = map(int, input().split())\n\nA, B = map(int, input().split())\n\nfor i in range(M-1):\n A2, B2 = map(int, input().split())\n\n if (A < A2 and B2 < A) or (B < A2 and B< B2):\n A = 0\n B = 0\n if (A2 <= A and B <= B2):\n pass\n elif (A2 <= A and A <= B):\n B = B2\n\n el...
['Runtime Error', 'Accepted']
['s403271511', 's193599483']
[3064.0, 2940.0]
[17.0, 17.0]
[432, 115]
p03035
u454043187
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A, B = input().split()\n\nif A >= 13:\n print(B)\nelif A <=5:\n print("0")\nelse:\n print(str(B//2))', 'A, B = input().split()\n \nif int(A) >= 13:\n print(B)\nelif int(A) <=5:\n print(str(0))\nelse:\n print(str(int(B)//2))\n']
['Runtime Error', 'Accepted']
['s532874006', 's218238668']
[2940.0, 2940.0]
[17.0, 17.0]
[96, 116]
p03035
u455642216
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A,B=map(int,input().split())\nif A>=13:\n print(B)\nif 6<=A<13:\n print(B/2)\nelse:\n print(0)', 'A,B=map(int,input().split())\nif A>=13:\n print(B)\nif 6<=A<12:\n print(B/2)\nelse:\n print(0)', 'A,B=map(int,input().split())\nif A>=13:\n print(B)\nif 5<A<13:\n print(B//2)\nif A<=5:\n print(...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s130849786', 's684079231', 's702847746']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0]
[97, 97, 100]
p03035
u456033454
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['n, m = map(int, input().split())\ncards = list(map(int, input().split()))\n \ndef calc():\n for i in range(m):\n b,c = map(int, input().split())\n if(min(cards) > c or b == 0):\n continue\n for i in range(b):\n if(b == 0):\n break\n card_min = min(cards)\n if(c > card_min and b > ...
['Runtime Error', 'Accepted']
['s275406710', 's376108968']
[3064.0, 2940.0]
[17.0, 17.0]
[415, 104]
p03035
u456566864
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['from sys import stdin\n\nA, B = map(int, stdin.readline().split())\nif A >= 13:\n print(B):\nelif 12 >= A >= 6:\n print(B // 2)\nelse:\n print(0)', 'from sys import stdin\n\nA, B = map(int, stdin.readline().split())\nif A >= 13:\n print(B)\nelif 12 >- A and A >= 6:\n print(B // 2)\nelse:\n print(0)\n']
['Runtime Error', 'Accepted']
['s232973467', 's889151250']
[2940.0, 2940.0]
[17.0, 17.0]
[140, 146]
p03035
u459965464
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['x = input().split()\nn = int(x[0])\nm = int(x[1])\na = list()\nfor i in range(m):\n y = input().split()\n l = int(y[0])\n r = int(y[1])\n for i in range(l,r+1):\n a.append(i)\nb = 0\nfor i in range(n):\n if a.count(i) == m:\n b += 1\nprint(b)\n ', 'x = input().split()\na = int(x[0])\nb = int(x[1])\nif a >...
['Runtime Error', 'Accepted']
['s887526477', 's707534687']
[3060.0, 2940.0]
[17.0, 17.0]
[242, 120]
p03035
u461836414
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['N, M = map(int, input().split())\nL1, R1 = map(int, input().split())\nflag = 0\ndef find_key(L1,R1,L2,R2):\n if R1 < L2 or R2 < L1:\n return(False)\n else:\n a = [R1,L1,R2,L2]\n a.sort()\n return(a[1],a[2])\n\nfor i in range(M - 1):\n L,R = map(int, input().split())\n if find_key(L1,R1,L,R) != False:\...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s114839491', 's317428667', 's588961435', 's774258037', 's726829039']
[3064.0, 2940.0, 2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 19.0]
[410, 138, 141, 346, 86]
p03035
u463263754
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['x, a = map(int, input().split())\nprint(0) if x < a else print(10) ', 'a, b = map(int, input().split())\n\nif a >= 13:\n money = b\nelif a >= 6 and a <=12:\n money = b/2\nelif a <= 5:\n money = 0\n\nprint(int(money))']
['Wrong Answer', 'Accepted']
['s812549479', 's325970132']
[2940.0, 2940.0]
[17.0, 17.0]
[66, 139]
p03035
u463945054
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['r, D, x = map(int, input().split())\n\nfor i range(10):\n x = r*x -D\n print(x)', 'A, B = map(int, input().split())\nif A >= 13:\n print (A)\n \nelif 6<=A<=12:\n print (B/2)\n \nelse:\n print (0)\n\n', 'A, B = map(int, input().split())\nif A >= 13:\n print (B)\n \nelif 6<=A<=12:\n print (int(B/2))\n \nelse:\n p...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s022564796', 's570579719', 's559166649']
[8796.0, 8948.0, 9016.0]
[25.0, 28.0, 24.0]
[77, 108, 113]
p03035
u465669072
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a, b = input()\n\nif a >= 13:\n print(b)\nelif a <= 5:\n print(0)\nelse:\n print(b/2)\n', 'a, b = map(int , input().split())\n\nif a >= 13:\n print(b)\nelif a <= 5:\n print(0)\nelse:\n print(int(b/2))\n']
['Runtime Error', 'Accepted']
['s997407303', 's677819382']
[2940.0, 2940.0]
[17.0, 18.0]
[88, 112]
p03035
u469315559
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A,B = map(int,input().sprit())\nif A<=5:\n print(0)\nelif A<=12:\n print(B//2)\nelse:\n print(B)', 'A,B = map(int,input().split())\nif A<=5:\n print(0)\nelif A<=12:\n print(B//2)\nelse:\n print(B)']
['Runtime Error', 'Accepted']
['s764621524', 's339831397']
[8952.0, 9032.0]
[25.0, 26.0]
[93, 93]
p03035
u470189643
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['if A<=5:\n print(0)\nelif A<=12:\n print(int(B/2))\nelse:\n print(B)', 'import sys\nA,B= (int(i) for i in input().split(" ")) \n\nif A=<5:\n print(0)\nelif A=<12:\n print(int(B/2))\nelse:\n print(B)', 'import sys\nA,B= (int(i) for i in input().split(" ")) \n\nif A<=5:\n print(0)\nelif A<=12:\n ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s454531461', 's465979464', 's396970946']
[2940.0, 2940.0, 2940.0]
[17.0, 19.0, 17.0]
[72, 128, 129]
p03035
u482019060
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A, B = input().split(" ")\nif A >= 13:\n print(B)\nelif 6 <= A <= B:\n print(int(B/2))\nelse:\n print(0)', 'A, B = list(map(int, input().split(" ")))\nif A >= 13:\n print(B)\nelif 6 <= A <= B:\n print(int(B/2))\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s675688138', 's577915221']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 123]
p03035
u482157295
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['\no,cost = map(int,input().split())\nif o > 12:\n cost = cost\nelif o != 0:\n cost = cost / 2\nelse:\n cost = 0\n', 'o,cost = map(int,input().split())\nif o > 12:\n cost = cost\nelif o >= 6:\n cost = cost / 2\nelse:\n cost = 0\n', 'o,cost = map(int,input().split())\nif o > 12:\n cost = cost\nelif o >= 6:\n co...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s171447789', 's904976559', 's285301843']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[108, 107, 120]
p03035
u483331319
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a, b = map(int, input().split())\nif a >= 6 and a <= 12:\n a //= 2\nelif a < 6:\n a = 0\nprint(a)\n', 'a, b = map(int, input().split())\nif a >=6 and a <= 12:\n a /= 2\nelif a < 6:\n a = 0\nprint(a)\n', 'a, b = map(int, input().split())\nif a >=6 and a <= 12:\n b //= 2\nelif a < 6:\n b = 0\nprint(b)\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s255937535', 's963828081', 's554509030']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[95, 93, 94]
p03035
u486251525
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['N, M = map(int, input().split())\nmin_ID = 0\nmax_ID = N\nfor _ in range(M):\n L, R = map(int, input().split())\n if min_ID < L:\n min_ID = L\n if max_ID > R:\n max_ID = R\n\nif max_ID < min_ID:\n print(0)\nelse:\n print(max_ID - min_ID + 1)\n\n', 'A, B = map(int, input().split())\nif A >...
['Runtime Error', 'Accepted']
['s751490540', 's857805120']
[2940.0, 2940.0]
[17.0, 17.0]
[259, 106]
p03035
u487288850
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b = map(int,input().split())\nif a<=5:\n print(0)\nelif 6<=a and a<=12:\n print(int(b/2)a)\nelse:\n print(b)', 'a,b = map(int,input().split())\nif a<=5:\n print(0)\nelif 6<=a and a<=12:\n print(int(b/2))\nelse:\n print(b)']
['Runtime Error', 'Accepted']
['s270549222', 's469895218']
[8736.0, 9096.0]
[27.0, 30.0]
[113, 112]
p03035
u489124637
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['N, M= map(int, input().split())\nL1, R1= map(int, input().split())\nAns = set(range(L1, R1+1))\n\nfor x in range(M-1):\n L, R = map(int, input().split())\n List = set(range(L, R+1))\n Ans = (Ans) & (List)\n\nprint(len(Ans))', 'A, B= map(int, input().split())\nimport math\n\nif A >= 13:\n print(B)\nif A >=...
['Runtime Error', 'Accepted']
['s214012139', 's679835553']
[3064.0, 3060.0]
[18.0, 19.0]
[223, 144]
p03035
u491539020
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['import numpy as np\n\nn,m=map(int,input().split())\na=input().split()\na = list(map(int, a))\na = np.array(a)\nfor i in range(m):\n a = np.sort(a)\n b,c=map(int,input().split())\n for j in range(b):\n if a[j]<c:\n a[j] = c\na = np.array(a)\nprint(a.sum())\n', 'a,b=map(int,input().split())\n...
['Runtime Error', 'Accepted']
['s827716518', 's009184759']
[12424.0, 2940.0]
[150.0, 17.0]
[270, 103]
p03035
u493247921
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b=map(int, input().split())\nif a=>13:\n out=b\nelif a=6:\n out=b/2\nelse:\n out=0\n \nprint(out)', 'a,b=map(int, input().split())\nif a>=13:\n out=b\nelif a>=6:\n out=int(b/2)\nelse:\n out=int(0)\n \nprint(out)']
['Runtime Error', 'Accepted']
['s193544653', 's337602354']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 106]
p03035
u493266819
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['N = int(input())\nI = int(input())\n\nif I <= 13:\n print(N)\nelif 6 <= I <=12:\n print(N/2)\nelif I <= 5:\n print("0")\n', 'N = int(input())\nI = int(input())\n\nif I <= 13:\n print(N)\nelif: 6 <= I <=12:\n print(N/2)\nelif: I <= 5\n print("0")', 'a,b = map(int,input().split())\n\nif a <= 13:\n ...
['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s733999778', 's740177254', 's744851278', 's239919742']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[121, 121, 122, 140]
p03035
u495903598
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['#!/usr/bin/env python\n# coding: utf-8\n\n# In[1]:\n\n\nimport sys\n#input = sys.stdin.readline\nA, B = map(int, input().split())\n\n\n# In[ ]:\n\n\nif A <=5:\n print(0)\nel\n\n', '#!/usr/bin/env python\n# coding: utf-8\n\n# In[6]:\n\n\nimport sys\n#input = sys.stdin.readline\nA, B = map(int, input().split())\n\n\...
['Runtime Error', 'Accepted']
['s144742451', 's664471284']
[2940.0, 2940.0]
[17.0, 17.0]
[162, 226]
p03035
u500297289
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A, B = map(int, input())\nif A >= 13:\n print(B)\nelif 6 <= A <= 12:\n print(B // 2)\nelse:\n print(0)', 'A, B = map(int, input().split())\nif A >= 13:\n print(B)\nelif 6 <= A <= 12:\n print(B // 2)\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s108722517', 's033074441']
[2940.0, 2940.0]
[17.0, 17.0]
[105, 113]
p03035
u503111914
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A,B =map(int,input().split())\nif A >= 13:\n print(B)\nelif A >= 6:\n print(B//2)\nelse:\nprint(0)\n', 'A,B =map(int,input().split())\nif A >= 13:\n print(B)\nelif A >= 6:\n print(B//2)\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s144237560', 's399074706']
[2940.0, 2940.0]
[17.0, 17.0]
[95, 96]
p03035
u503228842
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['N,M = map(int,input().split())\nA= list(map(int,input().split()))\nBC=[list(map(int,input().split())) for _ in M]\nA.sort()\nBC.sort(key=lambda x:-x[1])\ni = 0\nfor B,C in BC:\n for j in range(i,min(N,i+B)):\n if A[j]<C:A[j]=C\n i = i+B\nprint(sum(A))\n', 'A,B = map(int,input().split())\nif A >= 13:print...
['Runtime Error', 'Accepted']
['s371044756', 's560908191']
[3064.0, 3060.0]
[17.0, 18.0]
[255, 88]
p03035
u505893372
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b =map(int, input().split)\n\nif a <= 5 :\n print(0)\nelif 5 < a <= 12 :\n print(b//2)\nelse :\n print(b)\n', 'a,b =map(int, input().split)\n\nif a <= 5 :\n print(0)\nelif 5 < a <= 12 :\n print(b/2)\nelse :\n print(b)', 'a,b =map(int,input().split)\n\nif a <= 5 :\n print(0)\nelif 5 < a <= 12 :\n print(b/2)\...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s286781326', 's702631938', 's769716968', 's773164943', 's855418574', 's947511670', 's764177784']
[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]
[104, 102, 102, 104, 108, 104, 109]
p03035
u506587641
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a, b = map(int, input().split())\n\nif a > 12:\n print(b)\n\neilf 5 < a < 13:\n print(b // 2)\n\nelse:\n print(0)', 'a, b = map(int, input().split())\n\nif a > 12:\n print(b)\n\nelif 5 < a < 13:\n print(b // 2)\n\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s802151273', 's736752719']
[2940.0, 2940.0]
[17.0, 17.0]
[113, 113]
p03035
u509739538
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['data = list(map(lambda x: int(x),input().split(" ")))\n\ncardNum = []\n\nfor n in range(data[1]):\n\tcardNum.append(list(map(lambda x: int(x),input().split(" "))))\n\n\ncard = [0]*(data[0])\n\ncheck = [0,1000000]\n\nfor n in range(data[1]):\n\tif check[0] < cardNum[n][0]:\n\t\tcheck[0] = cardNum[n][0]\n\tif check[1] ...
['Runtime Error', 'Accepted']
['s532090411', 's761304115']
[3064.0, 3060.0]
[17.0, 18.0]
[369, 131]
p03035
u511449169
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a, b = int(input())\nif a<5:\n print(0)\nelif a>=6 and a<=12:\n print(int(b // 2))\nelse:\n print(b)', 'a, b = map(int, input().split())\nif a<=5:\n print(0)\nelif a>=6 and a<=12:\n print(int(b // 2))\nelse:\n print(b)']
['Runtime Error', 'Accepted']
['s235897047', 's552356869']
[2940.0, 2940.0]
[17.0, 17.0]
[97, 111]
p03035
u513081876
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A, B = map(int, input().split())\nif A <= 5:\n print(0)\nelif A <= 12:\n print(B//2)\nelse:\n print(0)', 'A, B = map(int, input().split())\nif A <= 5:\n print(0)\nelif A <= 12:\n print(B//2)\nelse:\n print(B)']
['Wrong Answer', 'Accepted']
['s700854623', 's124722979']
[3060.0, 3060.0]
[17.0, 17.0]
[105, 105]
p03035
u514894322
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a, b = map(int,input().split())\nif a <= 5:\n print(0)\nelif a < = 12:\n print(b//2)\nelse:\n print(b)', 'a, b = map(int,input().split())\nif a <= 5:\n print(0)\nelif a <= 12:\n print(b//2)\nelse:\n print(b)\n']
['Runtime Error', 'Accepted']
['s669108959', 's253440890']
[2940.0, 2940.0]
[17.0, 17.0]
[99, 99]
p03035
u517447467
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A, B = list(map(int, input().split()))\nif A <= 5:\n print(0)\nelif 6 <= A or A <= 12:\n print(B//2)\nelse:\n print(B)', 'A, B = list(map(int, input().split()))\nif A <= 5:\n print(0)\nelif 6 <= A and A <= 12:\n print(B//2)\nelse:\n print(B)']
['Wrong Answer', 'Accepted']
['s879254167', 's946823217']
[2940.0, 3060.0]
[17.0, 17.0]
[115, 116]
p03035
u518386853
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a, b = map(int, input().split())\n\nif a < 6:\n print(0)\nelif a > 12:\n print(a)\nelse:\n print(a/2)', 'a, b = map(int, input().split())\n\nif a < 6:\n print(0)\nelif a > 12:\n print(b)\nelse:\n print(int(b/2))']
['Wrong Answer', 'Accepted']
['s318730766', 's762787788']
[2940.0, 2940.0]
[17.0, 17.0]
[97, 102]
p03035
u524534026
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a,b = map(int, input().split())\nif a >= 13:\n print(b):\nelif 5 <= a <= 12:\n print(b//2)\nelse:\n print(0)', 'a,b = map(int, input().split())\nif a >= 13:\n print(b)\nelif 5 <= a <= 12:\n print(int(b/2))\nelse:\n print(0', 'a,b = map(int, input().split())\nif a >= 13:\n print(b):\nelif 5 <= a <...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s226889488', 's306838801', 's849748650', 's183037612']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0, 18.0]
[111, 113, 111, 116]
p03035
u526582609
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a = int(input("")\nb = int(input("")\nif b%2==0:\n if a>=13:\n print(b)\n elif 6<=a<=12:\n print(b/2)\n elif a<=5:\n print(0)', 'a = int(input(""))\nb = int(input(""))\nif b % 2==0:\n if a>=13:\n print(b)\n elif 6<=a<=12:\n print(b/2)\n elif a<=5...
['Runtime Error', 'Runtime Error', 'Accepted']
['s348333963', 's955147064', 's543772841']
[8928.0, 9132.0, 9140.0]
[21.0, 20.0, 27.0]
[165, 154, 142]
p03035
u527311983
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['a, b = int(input().split())\n\nif a >= 13:\n print(b)\n end()\n \nif a >= 6:\n b /= 2\n print(b)\n end()\n \nprint(0)', 'a, b = map(int,input().split())\n\nif a >= 13:\n print(b)\n \nelse if a >= 6:\n b /= 2\n print(b)\n \nelse print(0)', 'a, b = map(int,input().split())\n\nif a >= 13:\n print(b)\n exit...
['Runtime Error', 'Runtime Error', 'Accepted']
['s493585635', 's551647767', 's739504571']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[113, 111, 122]
p03035
u531220228
2,000
1,048,576
Takahashi, who is A years old, is riding a Ferris wheel. It costs B yen (B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currenc...
['A,B = map(int, input().split())\n\nif A => 13:\n print(B)\nelif A =< 5:\n print(0)\nelse:\n print(int(B/2))', 'A,B = map(int, input().split())\nif A <= 5:\n print(0)\nelif A <= 12:\n print(int(B/2))\nelse:\n print(A)', 'A, B = map(int, input().split())\n\nif A >= 13:\n print(B)\nelif A > 5:\n print(int(B/...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s551965700', 's763185845', 's282266989']
[2940.0, 2940.0, 3060.0]
[18.0, 17.0, 17.0]
[103, 102, 109]