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
u531258707
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()))\nprint(A,B)\nif A <= 5:\n\tprint(0)\nelif A <= 12:\n\tprint(int(B/2))\nelif A >= 13:\n\tprint(int(B))', 'A,B = list(map(int,input().split()))\nif A <= 5:\n\tprint(0)\nelif A <= 12:\n\tprint(int(B/2))\nelif A >= 13:\n\tprint(int(B))']
['Wrong Answer', 'Accepted']
['s797903028', 's561397310']
[3060.0, 2940.0]
[17.0, 17.0]
[128, 117]
p03035
u534302832
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 = []\na = input().split()\n\nA = a[0]\nB = a[1]\n\nif A > 13 :\n print(B)\nif A >= 6 and A <= 12 :\n print(B / 2)\nif A <= 5 :\n print(0)\n', 'a = []\na = input().split()\n\nA = int(a[0])\nB = int(a[1])\n\nif A >= 13 :\n print(B)\nif A >= 6 and A <= 12 :\n print(int(B / 2))\nif A <= 5 :\n print(0)\n']
['Runtime Error', 'Accepted']
['s434031164', 's279597831']
[2940.0, 2940.0]
[17.0, 17.0]
[132, 148]
p03035
u536560967
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 and A <= 12:\n print(int(B/2))\nelif A <= 5\n print(0)', 'A, B = map(int, input().split())\n\nif A >= 13:\n print(B)\nelif A >= 6 and A <= 12:\n print(int(B/2))\nelif A <= 5:\n print(0)']
['Runtime Error', 'Accepted']
['s892987672', 's108040548']
[2940.0, 2940.0]
[17.0, 17.0]
[122, 123]
p03035
u536685012
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)\nelif a >= 6:\n print(int(b/2))\nelse:\n print('0')", 'a,b = [int(i) for i in 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']
['s405047182', 's843049100']
[2940.0, 2940.0]
[18.0, 17.0]
[101, 112]
p03035
u538956308
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 = (12,100)\nif A<6:\n print(0)\nelif A<13:\n print(B//2)\nelse:\n print(B)\n', 'A,B = int(input())\nif A<6:\n print(0)\nelif A<13:\n print(B/2)\nelse:\n print(B)', 'i = list(map(int,input().split()))\nA = i[0]\nB = i[1]\nif A>12:\n print(B)\n elif A<6:\n print(0)\n else:\n print(B/2)\n ', ...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s143463169', 's160092436', 's395274514', 's535755748', 's384666458']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[76, 78, 131, 131, 91]
p03035
u542506429
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 6 <= a <= 12:\n print(int(b/2))\nelse:\n print(0)', 'a, b = map(int, input().split())\nif a >= 13:\n print(b)\nelif 6 <= a <= 12:\n print(int(b/2))\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s162226579', 's993455120']
[2940.0, 3060.0]
[17.0, 17.0]
[110, 109]
p03035
u544034775
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 = [i for i in input().split()]\n\nif a >= 13:\n print(b)\nelif a>=6 and a<=12:\n print(b/2)\nelse:\n print(0)', 'a, b = [int(i) for i in input().split()]\n\nif a >= 13:\n print(b)\nelif a>=6 and a<=12:\n print(int(b/2))\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s539048059', 's759237133']
[2940.0, 2940.0]
[17.0, 17.0]
[110, 120]
p03035
u547764399
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()))\n\nif a >= 6 and a >= 12:\n c = b / 2\n print(round(c))\n\nif a < 5:\n print("0")', 'a,b = list(map(int, input().split()))\n\nif a >= 6 and a >= 12:\n c = b / 2\n print(c)\n\nif a < 5:\n print("0")', 'a,b = list(map(int, input().split()))\n\nif a >= 13:\n pri...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s196938148', 's515044268', 's591029995', 's315826414']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 19.0, 17.0, 17.0]
[121, 114, 147, 148]
p03035
u548178442
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...
['read=input;\nA,B=map(int,read()).spilt()\nif A>=0 and A<=5:\n print(0);\nelif A>5 and A<=12:\n print(B/2);\nelse:\n print(B);', "read=input();\nA,B=read.spilt(' ')\nA=int(A)\nB=int(B)\nif A>12:\n print(B);\nelif A>5:\n print(B/2);\nelse:\n print(B);", '\nif A>=0 and A<=5:\n return 0;\nelif A>5 and A<=12:\n re...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s020836043', 's054977360', 's270674876', 's383033042', 's413805705', 's459717884', 's936853180', 's148275875']
[2940.0, 3060.0, 2940.0, 3060.0, 3060.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0, 17.0, 17.0, 18.0, 17.0]
[121, 114, 82, 133, 114, 124, 82, 119]
p03035
u553070631
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 (x) for x in input().split())\nif a<=5:\n print(0)\nelif a<=12:\n print(int((b/2))\nelse:\n print(b)', 'a,b=(int (x) for x in input().split())\nif a<=5:\n print(0)\nelif a<=12:\n print(int(b/2))\nelse:\n print(b)']
['Runtime Error', 'Accepted']
['s318671920', 's876683495']
[2940.0, 2940.0]
[17.0, 18.0]
[106, 105]
p03035
u554784585
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>12:\n print(b)\nelif a>5:\n print(b/2)\nelse:\n print(0)', 'a,b=map(int,input())\nif a>12:\n print(b)\nelif 13>a>5:\n print(b/2)\nelse:\n print(0)\n', 'a,b=map(int,input().split())\nif a>12:\n print(b)\nelif 12>=a>=6:\n print(b//2)\nelse:\n print(0)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s074097668', 's485903098', 's904339751']
[9056.0, 9028.0, 8952.0]
[24.0, 22.0, 26.0]
[86, 90, 101]
p03035
u556589653
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 = []\nb = []\nfor i in range(M):\n x,y = map(int,input().split())\n a.append(x)\n b.append(y)\nif max(a) <= min(b):\n print(min(y)-max(x)+1)\nelse:\n print(0)', 'a,b = map(int,input().split())\nif (13 <= a):\n print(b)\nelif (6 <= a <= 12):\n print(b//2)\nelse:\n pr...
['Runtime Error', 'Accepted']
['s372240378', 's257973747']
[3060.0, 9164.0]
[18.0, 23.0]
[197, 107]
p03035
u556594202
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 ans=B\nelif 6<=A:\n ans=B/2S\nelse:\n ans = 0\n\nprint(ans)\n', 'A,B = map(int,input().split())\nif 13<=A:\n ans=B\nelif 6<=A:\n ans=B/2\nelse:\n ans = 0\n\nprint(int(ans))']
['Runtime Error', 'Accepted']
['s075678859', 's449901215']
[9016.0, 9164.0]
[24.0, 28.0]
[105, 108]
p03035
u558129042
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...
['number = input().split(" ")\nA = int(number[0])\nB = int(number[1])\nif A >= 13:\n\tprint(B)\nelif 6 =< A < 13:\n\tprint(B/2)\nelse:\n\tprint(0)', 'number = input().split(" ")\nA = int(number[0])\nB = int(number[1])\nif A >= 13:\n\tprint(B)\nelif 6 <= A < 13:\n\tprint(int(B/2))\nelse:\n\tprint(0)']
['Runtime Error', 'Accepted']
['s918425353', 's033405305']
[2940.0, 2940.0]
[19.0, 17.0]
[133, 138]
p03035
u558782626
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())\nprint(price * (min(1, age//13) + min(1, age//6)) / 2)', 'age, price = map(int, input().split())\nprint(price * (min(1, age//13) + min(1, age//6)) // 2)']
['Wrong Answer', 'Accepted']
['s029701285', 's575779803']
[2940.0, 2940.0]
[17.0, 17.0]
[92, 93]
p03035
u561358604
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...
['i = input().split(" ")\n\nr = int(i[0])\nd = int(i[1])\na = int(i[2])\n\nfor i in range(10):\n\ta = a * r - d\n\tprint(a)\n', "i = input().split(' ')\n\na = int(i[0])\nb = int(i[1])\n\nif a >= 13:\n\tprint(b)\nelif a >= 6:\n\tprint(b // 2)\nelse:\n\tprint(0)\n"]
['Runtime Error', 'Accepted']
['s954066378', 's553535934']
[2940.0, 2940.0]
[17.0, 17.0]
[112, 119]
p03035
u561862393
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\nI = input().split()\nA = [int(s) for s in(I)]\nd = 1\n\nfor i in range(m):\n b, c = map(int, input().split())\n if d == 1:\n A.sort()\n d = 0\n else:\n pass\n for j in range(b):\n if A[j] >= c:\n break\n else:\n A...
['Runtime Error', 'Accepted']
['s780422750', 's910610374']
[3060.0, 2940.0]
[17.0, 18.0]
[351, 114]
p03035
u563379250
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 and a<=12\n print(int(b/2))\nelse \n print(0)\n \n', '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)\n ', 'a,b = map(int,input().split())\nif a>=13:\n print(b)\nelif a>=6 and a<=12\n ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s173448603', 's260738466', 's725747859', 's528109703']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[112, 106, 106, 95]
p03035
u564268164
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 if a < 6 else (b // 2) if a < 13 else a)', 'a, b = map(int, input().split())\nprint(0 if a < 6 else (b // 2) if a < 13 else b)']
['Wrong Answer', 'Accepted']
['s471735401', 's194501669']
[2940.0, 2940.0]
[17.0, 19.0]
[81, 81]
p03035
u565924121
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())\n\nif B<6:\n print(0)\nelif 6<=B<=12:\n print(A/2)\nelse:\n print(A)\n\n', 'A,B=map(int,input().split())\n\nif B<6:\n print(0)\nelif 6<=B<=12:\n print(A/2)\nelse:\n print(A)\n\n', 'A,B=int(input())\n\nif A<6:\n print(0)\nelif 6<=A<=12:\n print(B/2)\nelse:\n print(B)\n\n', 'A,B=int(input())\n...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s061401383', 's078497502', 's821298823', 's839374154', 's913469681', 's121550751']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 16.0, 17.0, 17.0, 17.0]
[83, 95, 83, 82, 80, 96]
p03035
u566483072
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 6<=a <= 12:\n print(b//2)\nelif 6<a:\n print(0)\nelse:\n print(b)', 'a,b = map(int,input().split())\nif a<6:\n print(0)\nelif 6<= a and a <= 12:\n print(b//2)\nelse:\n print(b)\n ']
['Wrong Answer', 'Accepted']
['s750500137', 's817690565']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 107]
p03035
u567351889
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 & a <= 12:\n b = b / 2\nelif a <= 5:\n b = 0\n\nprint(b)', 'a, b = map(int, input().split())\n\nif a <= 12:\n b = b / 2\n\nif a <= 5:\n b = 0\n\nprint(int(b))\n']
['Wrong Answer', 'Accepted']
['s530530016', 's740157912']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 105]
p03035
u568130550
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(int(B) if A >= 13 else 0 if A <= 5 else int(B//2)', 'A,B = map(int,input().split())\n\nif A >= 13:\n print(B)\nelif A <= 5:\n print(0)\nelse: \n print(B//2)']
['Runtime Error', 'Accepted']
['s042788833', 's207219960']
[8992.0, 9104.0]
[23.0, 28.0]
[87, 108]
p03035
u568855891
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()\na = int(a)\nb = int(b)\nprice = 0\nif(a>=13):\n price = b\nif(a>=6):\n price = b / 2\nprint(price)', 'a,b = input().split()\na = int(a)\nb = int(b)\nprice = 0\nif(a>=13):\n price = b\nif(a>=6):\n price = b / 2\nprint(price)', 'a,b = input().split()\na = int(a)\nb = int(b)\nprice = 0\nif a>=...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s196572409', 's342632265', 's173590996']
[2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[115, 115, 158]
p03035
u572940434
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 = []\nLR = [list(map(int,input().split())) for _ in range(M)]\nfor i in range(M):\n L.append(LR[i][0])\ncountL = 0\ncountL = max(L)\nfor j in range(M):\n R.append(LR[j][1])\ncountR = 0\ncountR = min(R)\nif countR >= countL:\n print(0)\nelse:\n print(countR-countL+...
['Runtime Error', 'Runtime Error', 'Accepted']
['s622404607', 's751531691', 's592110694']
[3064.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[319, 329, 115]
p03035
u576927476
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#a,b = int(input()),int(input())\n\nif 6<=a<=12 :\n ans = b/2\n\nelif 6 > a :\n ans = 0\n\nelse :\n ans = b\n\nprint(ans)\n', '"""a=int(input())\nb=int(input())"""\na,b = int(input()),int(input())\n\nif 6<=a<=12 :\n ans = b/2\n\nelif 6 > a :\n ans = 0\n\nelse :\n ans ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s050151112', 's974134900', 's667335630']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[150, 155, 210]
p03035
u577987679
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 years():\n A=list(map(int,input().split()))\n c=0\n a=A[0]\n b=A[1]\n \n if b%2!=0 or a<0:\n return\n \n \n if a>=13:\n print(b)\n \n if a<=6 and a>=12:\n print(b/2)\n \n if a<=5:\n print(c)\n \n ', 'def years():\n A=list(map(int,input().split()))\n c=0\n a=A[0]\n b=A[1]\n ...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s006194472', 's488217816', 's899209720', 's178976048']
[2940.0, 3064.0, 3060.0, 3064.0]
[17.0, 17.0, 17.0, 17.0]
[216, 213, 251, 274]
p03035
u579475320
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\nimport bisect\nQ = int(input().rstrip())\n#queries = []\n#for _ in range(Q):\n\n\nbias = 0\nvs = []\n\nqi = 0\n\n# if len(query) == 3:\n\nfor _ in range(Q):\n query = input()\n if query[0] == "1":\n v, b = map(int, query[2:].split(" "))\n qi += 1\n bisect.insort_left(vs, v)\n...
['Runtime Error', 'Accepted']
['s575067509', 's826154324']
[3064.0, 2940.0]
[20.0, 17.0]
[1991, 109]
p03035
u580236524
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(x) for x in input().split()]\n\nif a >= 13:\n print(b)\nif 6 <= a <13:\n print(b/2)\nelse:\n print(0)', 'a,b = [int(x) for x in input().split()]\n\nif a >= 13:\n print(b)\nif 6 <= a <=12:\n print(b//2)\nelse:\n print(0)', 'a,b = [int(x) for x in input().split()]\n\nanswer = B\nif 6 <= A <= 12:\n ans...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s376315199', 's392473039', 's619850813', 's832186672', 's905162727', 's966222014', 's764251702']
[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]
[108, 110, 127, 137, 110, 105, 128]
p03035
u581511366
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()))\n\nfor _ in range(M):\n B, C = map(int,input().split())\n A += [C]*B\n A.sort(reverse=True)\n A = A[:N]\nprint(sum(A))', 'A ,B = map(int,input().split())\n\nif 13 <= A:\n print(B)\nelif 6 <= A:\n print(B//2)\nelse:\n print(0)']
['Runtime Error', 'Accepted']
['s874948728', 's069731191']
[3060.0, 2940.0]
[17.0, 17.0]
[190, 105]
p03035
u582357066
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 return b\nelif a < 6:\n return 0\nelse: \n return b//2\n', 'a, b = map(int, input().split())\n \nif a > 13:\n return b\nelif a < 6:\n return 0\nelif a >= 6 and a <= 12: \n return int(b/2)', 'a, b = map(int, input().split())\n \nif a < 6:\n print(0)\nelif a <= 12...
['Runtime Error', 'Runtime Error', 'Accepted']
['s103315442', 's429422947', 's285699565']
[2940.0, 3064.0, 2940.0]
[17.0, 17.0, 17.0]
[100, 123, 106]
p03035
u587589241
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<12:\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)\nif a<=5:\n print(0)']
['Wrong Answer', 'Accepted']
['s485976181', 's171493450']
[9136.0, 9100.0]
[31.0, 28.0]
[98, 102]
p03035
u597455618
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 6 <= a :\n print(b/2)\nelse :\n print(0)\n', 'a, b = map(int, input().split())\nif a <= 13: \n print(b)\nelif 6 <= a :\n print(int(b/2))\nelse :\n print(0)\n', 'a, b = map(int, input().split())\nif 13 <= a: \n print(b)\nelif 6 <= a :\n print(int(...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s452446531', 's901074043', 's278426084']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0]
[102, 107, 107]
p03035
u600195339
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 = map(int, input().split())\nnums = []\n\nfor i in range(n):\n nums.append(i + 1)\n\nfor i in range(m):\n l, r = map(int, input().split())\n nums = list(filter(lambda x: l <= x <= r, nums))\n if len(nums) == 0:\n print(0)\n\t\tsys.exit()\n\nprint(len(nums))\n', 'a, b = map(int, i...
['Runtime Error', 'Accepted']
['s163444876', 's283665253']
[2940.0, 2940.0]
[17.0, 18.0]
[279, 117]
p03035
u601235270
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 a>=6 & a<13:\n print(int(b/2))\nelse:\n print(int(b))', 'a,b = map(int, input().split())\n\nif a>=13:\n print(int(b))\nelif a<=12 and a>=6:\n print(int(b/2))\nelse:\n print(0)']
['Wrong Answer', 'Accepted']
['s201596945', 's616643375']
[2940.0, 2940.0]
[16.0, 18.0]
[115, 121]
p03035
u606090886
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()))\nb = []\nc = []\nfor i in range(m):\n bb,cc =map(int,input().split())\n b.append(bb)\n c.append(cc)\na.sort()\nfor i in range(m):\n for j in range(b[i]):\n if a[j] < c[i]:\n a[j] = c[i]...
['Runtime Error', 'Runtime Error', 'Accepted']
['s637933346', 's767939149', 's358346253']
[3060.0, 3064.0, 2940.0]
[18.0, 18.0, 17.0]
[346, 405, 112]
p03035
u608579392
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_ID, n_gates = [int(data) for data in input().split()]\nL = np.empty(n_gates, dtype = int)\nR = np.empty(n_gates, dtype = int)\n\nfor i in range(n_gates):\n L[i], R[i] = [int(data) for data in input().split()]\n\nID_gate_matrix = np.zeros((n_ID, n_gates))\n\nfor j in range(n_gates):\n for i i...
['Runtime Error', 'Accepted']
['s327228895', 's443448830']
[20784.0, 2940.0]
[286.0, 17.0]
[523, 129]
p03035
u609061751
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 <= 12:\n print(A//2)\nelse:\n print(A)', 'import sys\ninput = lambda : sys.stdin.readline().rstrip()\n\na, b = map(int, input().split())\n\nans = 0 if a <= 5 else b//2 if a <= 12 else b\n\nprint(ans)']
['Wrong Answer', 'Accepted']
['s594611873', 's095381483']
[2940.0, 2940.0]
[17.0, 17.0]
[116, 150]
p03035
u611386050
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\nA,B = map(int,input().split())\n\nif A >= 13:\n print(B)\n\nif 6 <= A <= 12:\n print(int(B/2))\n\nelse:\n print("0")\n', '#coding:utf-8\nA,B = map(int,input().split())\n\nif A >= 13:\n print(B)\n\nif 6 <= A <= 12:\n print(int(B/2))\n\nif A <= 5:\n print("0")\n']
['Wrong Answer', 'Accepted']
['s770015656', 's360519163']
[2940.0, 2940.0]
[17.0, 17.0]
[131, 136]
p03035
u615918811
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 main():\n a,b = map(int, input().split())\n if a>=13:\n print(b)\n elif 6<=a<=12:\n print(int(b/2)\n else:\n print(0)\nmain()', 'def main():\n a,b = map(int, input().split())\n if a>=13:\n print(b)\n elif 6<=a<=12:\n print(int(b/2))\n else:\n print...
['Runtime Error', 'Accepted']
['s924211286', 's857116360']
[2940.0, 3064.0]
[17.0, 17.0]
[154, 155]
p03035
u625729943
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 i in range(M)]\n\nA = sorted(A)\nBC = sorted(BC, key=lambda x: -x[1])\n\nlenA = len(A)\ni = 0\nfor bc in BC:\n for j in range(bc[0]):\n if A[i] > bc[1]: break\n if i > lenA: break\n A[i] = bc[1]\...
['Runtime Error', 'Accepted']
['s302009571', 's017551179']
[3064.0, 2940.0]
[17.0, 17.0]
[330, 93]
p03035
u625963200
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 6<=a<=12:\n print(b/2)\nelse:\n print(0)', 'a,b=map(int,input().split())\n\nif a>=13:\n print(b)\nelif 6<=a<=12:\n print(int(b/2))\nelse:\n print(0)']
['Wrong Answer', 'Accepted']
['s333131467', 's092649478']
[2940.0, 3060.0]
[17.0, 18.0]
[95, 100]
p03035
u626228246
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\na = int(input())\n\nif a >= 13:\n print(a)\n sys.exit()\nelif a >= 6 and a <= 12:\n print(int(a/2))\n sys.exit()\nelse:\n print(0)\n', 'import sys\na = int(input())\n\nif a >= 13:\n print(a)\nelif a >= 6 and a <= 12:\n print(a//2)\nelse:\n print(0)\n', 'import sys\na,b = map(int,input().split())\n...
['Runtime Error', 'Runtime Error', 'Accepted']
['s511536414', 's710736549', 's561229042']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[138, 108, 122]
p03035
u626881915
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(max(b*(1//(min(a, 13)//13+1)-5), 0))', 'a,b=map(int,input().split())\nprint(b//(12//min(a, 13)+1)*(min(1, a//6))\n', 'a,b=map(int,input().split())\nprint(b//(13//min(a+1, 14)+1)*min(1, a//6))\n']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s269912190', 's464922714', 's659840987']
[3188.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[71, 72, 73]
p03035
u628581330
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 wheel(a,b):\n if a>=13:\n return b\n if a>=6 and a<=12:\n return b/2\n if a<6:\n return 0 \na,b = map(int, input().split())\nprint(wheel(a,b))', 'def wheel(a,b):\n if a>=13:\n return b\n if a>=6 and a<=12:\n return b/2\n if a<6\n return 0 \na,b = map(int, in...
['Runtime Error', 'Runtime Error', 'Accepted']
['s556315395', 's992384616', 's129210904']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[166, 165, 176]
p03035
u629209109
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 <= 5:\n\tprint(0)\n \nelif a <=12:\n\tprint(b/2)\n \nelse:\n\tprint(b)', 'a,b = map(int,input())\n \nif a <= 5:\n\tprint("0")\n \nelif a <= 12:\n\tprint(b/2)\n \nelse:\n\tprint(b)\n\t', 'a,b = map(int,input())\n\nif a <= 5:\n print("0"\n \nelif a <= 12:\n ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s033432326', 's158214663', 's763024494', 's886007302', 's866224634']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 17.0]
[93, 109, 122, 107, 121]
p03035
u631019293
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()))\n\nfor i in range(m):\n b,c=map(int,input().split())\n a+=([c]*b)\n\na.sort()\na.reverse()\nans=0\n\nfor i in range(n):\n ans+=a[i]\n\nprint(ans)\n', 'a,b=map(int,input().split())\nif a>=13:\n print(b)\nelif 6<=a<13:\n print(b//2)\nelse:\...
['Runtime Error', 'Accepted']
['s827079320', 's736332828']
[3060.0, 2940.0]
[17.0, 18.0]
[206, 101]
p03035
u635949425
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,c=input(int()).split()\ns = b\naa = int(a)\ncc = int(c)\nbb = int(b)\nfor i in range(10):\n d= aa * cc - bb\n cc = d\n print (int(d))', 'a,b=input().split()\nif int(a) >= 13 :\n print(int(b))\nif int(a) >= 6 and int(a) <=12 :\n print(round(int(b) / 2))\nif int(a) <= 5 :\n print(0)\n']
['Runtime Error', 'Accepted']
['s115875176', 's176522688']
[3060.0, 2940.0]
[18.0, 17.0]
[139, 148]
p03035
u637593381
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 a <= 12:\n print(int(b / 2))\nelse:\n print(b)', 'a, b = map(int, input().split())\n \nif a <= 5:\n print(0)\nelif a <= 12:\n print(int(b / 2))\nelse:\n print(b)']
['Runtime Error', 'Accepted']
['s802898163', 's170234891']
[2940.0, 2940.0]
[17.0, 18.0]
[106, 107]
p03035
u653158922
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 -*-\na, b = map(int, input().split())\nif a <= 5:\n print(int(0))\nelif a >= 6 & a <= 12:\n print(int(b/2))\nelse:\n print(int(b))\n', '# -*- coding: utf-8 -*-\na, b = map(int, input().split())\nif a <= 5:\n print(int(0))\nelif a > 5 & a <= 12:\n print(int(b/2))\nelse:\n print(in...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s009383152', 's315158316', 's646666073', 's801470392']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 20.0, 17.0]
[153, 152, 142, 148]
p03035
u655048024
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<=5):\n print(0)\nelse:\n if(A<13):\n V = B//2\n print(V)\n else:\n print(B)\n', 'A = int(input())\nB = int(input())\nif(A<=5):\n print(0)\nelse:\n if(A<13):\n V = B/2\n print(V)\n else:\n print(B)', 'A = int(input())\nB = int(input())\nif(A>=13):\n pri...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s115616381', 's116079142', 's163324060', 's564368490']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[120, 118, 105, 117]
p03035
u655110382
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, g = map(int, input().split())\ncards = [[int(x) for x in input().split()] for _ in range(g)]\n\ncards.sort(key=lambda x: x[0])\nlmx = cards[g - 1][0]\ncards.sort(key=lambda x: x[1])\nrmn = min(cards[0][1], n)\n\nprint(max(0, rmn - lmx + 1))\n', 'A, B = [int(x) for x in input().split()]\nif A <= 5:\n print(0)\ne...
['Runtime Error', 'Accepted']
['s541849076', 's443528532']
[3060.0, 2940.0]
[17.0, 17.0]
[236, 120]
p03035
u657777460
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\nN ,M = (int(x) for x in input().split())\na = np.array([int(x) for x in input().split()])\nfor i in range(M):\n B,C = (int(x) for x in input().split())\n a = np.insert(a, np.shape(a) ,np.full(B, C))\n\na_sort = np.sort(a)\nprint(np.sum(a_sort[-N:]))', 'import numpy as np\nN ,M = (int(x) for ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s126146516', 's305494401', 's522358717']
[12448.0, 12448.0, 2940.0]
[149.0, 152.0, 17.0]
[267, 267, 117]
p03035
u663014688
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 in range(10):\n ans = x * r - d\n print(ans)\n x = ans', 'r, d, x = map(int, input().split())\n\nfor i range (10):\n ans = x * r - d\n print(ans)\n x = ans', 'age, price = map(int, input().split())\nans = 0\n\nif age <= 5:\n ans = 0\nelif age >= 6 and ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s794887738', 's980078383', 's907473073']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[103, 101, 157]
p03035
u663230781
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(x) for x in input().rstrip().split(" ")]\nif a >= 13:\n print(b)\nelsif a < 6:\n print(0)\nelse:\n print(b // 2)\n', 'a, b = [int(x) for x in input().rstrip().split(" ")]\nif a >= 13:\n print(b)\nelif a < 6:\n print(0)\nelse:\n print(b // 2)\n']
['Runtime Error', 'Accepted']
['s814874008', 's040568973']
[2940.0, 2940.0]
[17.0, 17.0]
[122, 121]
p03035
u664373116
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 collections import Counter \nfrom collections import defaultdict\nfrom collections import deque\nimport math\nimport itertools\nimport heapq\nimport sys\nsys.setrecursionlimit(10**6)\n\n#n=int(input())\n#n,m=list(map(int,input().split()))\n#a=list(map(int,input().split()))\ninput_list = lambda : list(map(int,inp...
['Wrong Answer', 'Accepted']
['s222672601', 's933743024']
[3316.0, 3316.0]
[21.0, 21.0]
[405, 405]
p03035
u669240121
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 <= 5:\n print(0)\nelif age <= 12:\n print(age // 2)\nelse:\n print(age)', 'age, price = map(int, input().split())\nif age <= 5:\n print(0)\nelif age <= 12:\n print(price // 2)\nelse:\n print(price)']
['Wrong Answer', 'Accepted']
['s540754874', 's595051346']
[3060.0, 2940.0]
[18.0, 17.0]
[121, 125]
p03035
u670567845
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 A <= 12:\n print(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(B//2)\nelse:\n print(B)']
['Wrong Answer', 'Accepted']
['s832484003', 's110042905']
[2940.0, 2940.0]
[17.0, 19.0]
[110, 111]
p03035
u676458682
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 __name__ == ‘__main__’:\n inputs=[int(line) for line in input().split(' ')]\n age,b=inputs[0],inputs[1]\n if age<6:\n print(0)\n elif age<13:\n print(b/2)\n else:\n print(b)", 'age,b = map(int,input().split())\t\nif age<6:\n print(0)\nelif age<13:\n print(b//2)\nelse:\n print(b)']
['Runtime Error', 'Accepted']
['s247674794', 's512933514']
[3192.0, 2940.0]
[18.0, 17.0]
[186, 98]
p03035
u682467216
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 6 <= A and A < 13:\n B /= 2\nelse if A < 6:\n B = 0\n \nprint(B)', 'def fun(age,money):\n if age >= 13 :\n return money\n else if age > 5 :\n return money / 2\n else:\n return 0', 'r,D,x = map(int, input().split())\n\nfor i in range(10):\n x = r*x - D\n print(x)...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s413102565', 's456225434', 's488327757', 's561893121', 's588187300', 's622880032', 's703439052', 's789906830']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[99, 115, 79, 90, 103, 97, 89, 119]
p03035
u685662874
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, sinput().split())\nif a >= 13:\n print(b)\nelif 6 <= a and a <= 12:\n print(b/2)\nelse:\n print(0)\n', '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)\n']
['Runtime Error', 'Accepted']
['s386033031', 's427866810']
[2940.0, 2940.0]
[17.0, 17.0]
[115, 118]
p03035
u688382286
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\nlmin = 1\nrmax = n\nfor i in range(m):\n l, r = map(int, input().split())\n\n if l > lmin:\n lmin = l\n\n if r < rmax:\n rmax = r\n\nif rmax\t< lmin:\n print(0)\nelse:\n print(rmax - lmin + 1)', 'a, b = map(int, input().split())\n\nif a >= 13:\n print...
['Runtime Error', 'Accepted']
['s283804446', 's438153727']
[3060.0, 2940.0]
[17.0, 17.0]
[239, 110]
p03035
u690781906
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(a)\nelif 6 <= a <= 12:\n print(a / 2)\nelse:\n print(0)', 'a, b = map(int, input().split())\nif a >= 13:\n print(a)\nelif 6 <= a <= 12:\n print(a / 2)\nelse:\n print(0)\n', 'a, b = map(int, input().split())\nif a > 13:\n print(a)\nelif 6 <= a <...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s152970926', 's495618961', 's628455202', 's306665860']
[2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 17.0]
[111, 113, 111, 113]
p03035
u692311686
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: print(B)\nelif A>=6: print(B/2)\nelse : print (0)', 'A=int(input())\nB=int(input())\nif A>=13: print(B)\nelif A>=6: print(int(B/2))\nelse : print (0)', 'r,D,x = [int(i) for i in input().split()]\nn=2000\nX=r*x-D\nx=X\nwhile n <=2010: \n print(x) \n X=r*x-D\n x=X\n n=n+1\n...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s198686104', 's383863365', 's480201947', 's898698180', 's222262540']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[21.0, 17.0, 18.0, 18.0, 17.0]
[87, 92, 122, 92, 92]
p03035
u696444274
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(int,input().split()))\n\nif data[0] >= 13:\n print(int(data[1]))\nelif data[0] >= 6:\n print(int(data[1]/2)\nelse:\n print(0)\n', 'a, b = list(map(int, input().split()))\n# x = list(map(int, input().split()))\n\n# n = int(input())\n# n, m = list(map(int, input().split()))\nif a < 6:\n prin...
['Runtime Error', 'Accepted']
['s242364973', 's624760085']
[2940.0, 2940.0]
[17.0, 17.0]
[144, 254]
p03035
u700499791
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(input())\nif int(A) < 6:\n out = 0\nelif int(A) > 12:\n out = int(B)\nelse:\n out = int(B) // 2\nprint(out)', 'A,B = input().split()\nif int(A) < 6:\n out = 0\nelif int(A) > 12:\n out = int(B)\nelse:\n out = int(B) // 2\nprint(out)']
['Runtime Error', 'Accepted']
['s107239291', 's861458267']
[2940.0, 3060.0]
[18.0, 18.0]
[114, 116]
p03035
u703890795
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 = 1\nr = N\nfor i in range(M):\n L, R = map(int, input().split())\n if L < l:\n l = L\n if r < R:\n r = R\nif l > r:\n print(0)\nelse:\n print(r-l+1)', 'N, M = map(int, input().split())\nl = 1\nr = N\nfor i in range(M):\n L, R = map(int, input().split())\n if L > l:\n ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s432241314', 's772459220', 's373094585']
[3060.0, 3060.0, 2940.0]
[18.0, 17.0, 17.0]
[184, 184, 99]
p03035
u704252625
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 = int(input())\nA = np.empty(N, dtype=np.int)\nB = np.empty(N, dtype=np.int)\nfor i in range(N):\n\tA[i], B[i] = map(int, input().split())\n\nfor i in range(N):\n\tprint(A[i] * B[i])\n\t\n', 'A, B = map(int, input().split())\nif 13 <= A:\n\tprint(B)\nelif 5 < A:\n\tprint(B // 2)\nelse:\n\tprin...
['Runtime Error', 'Accepted']
['s336457584', 's174625719']
[21296.0, 2940.0]
[399.0, 17.0]
[198, 99]
p03035
u708255304
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 5 >= A:\n print(0)\nelif 12 >= A:\n print(int(A/2))\nelse:\n print(A)\n', 'A, B = map(int, input().split())\nif A >= 13:\n print(B)\nelif A >= 6:\n print(B//2)\nelse:\n print(0)\n']
['Wrong Answer', 'Accepted']
['s143474032', 's273063247']
[2940.0, 2940.0]
[17.0, 18.0]
[111, 106]
p03035
u708615801
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\nstdin = sys.stdin\n \nsys.setrecursionlimit(10**5) \n \ndef ii(): return int(stdin.readline())\ndef li(): return map(int, stdin.readline().split())\nA, B = tuple(li())\nif A >= 13:\n print(B)\nif A >= 6:\n print(B//2)\nprint(0)\n', 'import sys\nstdin = sys.stdin\n \nsys.setrecursionlimit(10**5) \n \...
['Wrong Answer', 'Accepted']
['s810122802', 's249856105']
[2940.0, 2940.0]
[17.0, 17.0]
[234, 246]
p03035
u709373021
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 0 <= a or a <= 5:\n print(0)\nif a >= 6 or a <= 12:\n print(b/2)\nif a >= 13:\n print(b)', 'a,b = map(int, input().split())\nif 0 <= a and a <= 5:\n print(0)\nif a >= 6 and a <= 12:\n print(b//2)\nif a >= 13:\n print(b)']
['Wrong Answer', 'Accepted']
['s396868160', 's323055393']
[2940.0, 2940.0]
[17.0, 17.0]
[127, 130]
p03035
u713314489
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())\nlist_and = list(range(1,N+1,1))\nfor i in range(M):\n L, R = list(map(int, input().split()))\n list_temp = list(range(L,R+1,1))\n list_and = list(set(list_and) & set(list_temp))\nprint(len(list_and))', 'a,b = map(int,input().split())\nif a >= 13:\n print(b)\nelif a>=6 and ...
['Runtime Error', 'Accepted']
['s093133816', 's062365206']
[3060.0, 2940.0]
[18.0, 19.0]
[235, 117]
p03035
u718411265
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>=13:\n print(B)\nelif 6<=A<=12:\n print(B//2)\nelse:\n print(0)', 'A,B=list(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']
['s067176689', 's680742773']
[2940.0, 2940.0]
[17.0, 18.0]
[83, 101]
p03035
u721425712
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 12 >= a and a >= 6:\n print(b/2)\nelif a <= 5:\n print(0)', 'a, b = map(int, input().split())\n\nif 13 <= a:\n print(b)\nelif 6 <= a and a <= 12:\n print(int(b/2))\nelif a <= 5:\n print(0)']
['Runtime Error', 'Accepted']
['s050468021', 's243547578']
[2940.0, 2940.0]
[17.0, 18.0]
[118, 123]
p03035
u727608386
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 -*-\ninputData = input()\nID, Gate = map(int, inputData.split())\nx = []\nfor i in range(Gate):\n inputId = input()\n idStart, idEnd = map(int, inputId.split())\n idList = list(range(idStart, idEnd + 1))\n x.append(idList)\n\n# print(x[0])\n\n\ndef solve():\n\n for i in range(len(x)...
['Runtime Error', 'Accepted']
['s005754268', 's920754834']
[3064.0, 2940.0]
[18.0, 17.0]
[662, 186]
p03035
u728615412
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...
['lis = list(map(int, input().split())\nif lis[0] => 13:\n return lis[1]\n\telif lis[0]>5 and lis[0]<13:\n return lis[1]/2\n\telse:\n return 0', 'lis = list(map(int, input().split()))\nif lis[0] => 13:\n\tprint(lis[1])\nelif lis[0]>5 and lis[0]<13:\n\tprint(lis[1]/2)\nelse:\n\tprint(0)', '...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s115436664', 's235370873', 's554789695', 's454398362']
[2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 18.0, 17.0, 17.0]
[162, 131, 131, 141]
p03035
u735975757
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())\n0<=A<=100\n2<=B<=100\n\nif 0 <= A <= 5 :\n B = 0\nelif 6 <= A <= 13 :\n B = B//2\nelse :\n B = B\n if B & 1:\n print(B)\n else :\n break\n', 'A, B = map(int, input().split())\n0<=A<=100\n2<=B<=100\n\nif 0 <= A <= 5 :\n B = 0\nelif 6 <= A <= 13 :\n B...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s238972381', 's300294745', 's408647916', 's529299245', 's599407058', 's654993081', 's681319552', 's391935071']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 19.0, 17.0, 18.0, 17.0, 17.0]
[187, 187, 133, 189, 109, 195, 193, 101]
p03035
u736565582
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(i) for i in input().split(" ")]\nif B <= 5:\n print(str(0))\nelif B <= 13:\n print(str(int(B/2)))\nelse:\n print(str(b))\n', 'A, B = [int(i) for i in input().split(" ")]\nif A <= 5:\n print(str(0))\nelif A <= 12:\n print(str(round(B/2)))\nelse:\n print(str(B))\n']
['Runtime Error', 'Accepted']
['s675976587', 's527158528']
[2940.0, 3316.0]
[17.0, 21.0]
[130, 132]
p03035
u738287470
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(i) for i in input().split()]\na.sort()\nfor i in range(m):\n b,c = map(int,input().split())\n if a[0] < b:\n for j in range(b):\n a[j] = max(a[j],c)\n a.sort()\nprint(sum(a))\n', 'a,b = map(int,input().split())\nif a < 6:\n b = 0\nelif a < 13:\n ...
['Runtime Error', 'Accepted']
['s563467005', 's817051720']
[3060.0, 2940.0]
[17.0, 17.0]
[234, 88]
p03035
u740284863
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\nimport bisect\nn,m = map(int,input().split())\nA = list(map(int,input().split()))\nA.sort()\nQuery = []\nfor _ in range(m):\n b,c = map(int,input().split())\n Query.append([c,b])\nQuery.sort(reverse=True)\nfor i in range(m):\n b,c = Query[i][1],Query[i][0]\n if A[0]...
['Runtime Error', 'Accepted']
['s171698316', 's145933516']
[9172.0, 3316.0]
[20.0, 21.0]
[696, 117]
p03035
u743848428
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...
[', b = map(int, input().split())\n\nif a>=13:\n print(b)\nelif a>=6:\n print(int(b/2))\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)\nelse:\n print(0)', 'a, b = map(int, input().split())\n\nif a>=13:\n print(b)\nelif a>=6:\n print(int...
['Runtime Error', 'Runtime Error', 'Accepted']
['s094685372', 's726377219', 's058712577']
[2940.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[105, 105, 106]
p03035
u746793065
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, r = list(map(int, [input().split() for i in range(m)]))\n\nmax_l = max(l)\nmin_r = min(r)\nprint(max(min_r - max_l, 0))\n ', 'a, b = map(int, input().split())\n\nif a >= 13:\n print(b)\nelif 6 <= a <= 12:\n print(int(b/2))\nelse:\n print(0)\n']
['Runtime Error', 'Accepted']
['s823033936', 's250781653']
[9132.0, 9124.0]
[23.0, 31.0]
[156, 111]
p03035
u750783400
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...
['\nimport copy\n\nN,M = map(int,input().split())\n\nA = list(map(int,input().split()))\n\nB =[]\nC =[]\n\ntA = []\nans = sum(A)\n\nfor i in range(M):\n b,c = map(int,input().split())\n B.append(b)\n C.append(c)\n\nfor i in range(N):\n for j in range(M):\n tA = copy.copy(A)\n for k in range(B[...
['Runtime Error', 'Accepted']
['s026389458', 's685695605']
[3444.0, 2940.0]
[22.0, 20.0]
[425, 110]
p03035
u753810022
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 6 =< A =< 12:\n print(B/2)\nelse:\n print(0)', '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']
['s263288968', 's135486487']
[2940.0, 2940.0]
[17.0, 17.0]
[109, 104]
p03035
u755993084
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(x) for x in input().split()]\nif a >= 13:\n yen = b * 2\nelif a >= 6 and a <= 12:\n yen = b\nelse:\n yen = 0\n \nprint(yen)', 'a, b = [int(x) for x in input().split()]\nif a >= 13:\n yen = b\nelif a >= 6 and a <= 12:\n yen = b / 2\nelse:\n yen = 0\n \nprint(int(yen))']
['Wrong Answer', 'Accepted']
['s566193468', 's171505763']
[2940.0, 2940.0]
[17.0, 17.0]
[131, 136]
p03035
u756399469
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 = list(map(int,input().split()))\nif a[0] <= 5:\n print(0)\nelif a[0] <= 12:\n print(a[1]//2)\nelse:\n print(a[0])', 'a = int(input().split())\nif a[0] <= 5:\n print(0)\nelif a[0] <= 12:\n print(a[1]/2)\nelse:\n print(a[0])', 'a = list(map(int,input().split()))\nif a[0] <= 5:\n print(0)\nelif a[0] <= 12:\n ...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s364580889', 's643508979', 's985220722', 's732341254']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[113, 102, 117, 113]
p03035
u759510609
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:\n print(int(B/2))\nelse :\n print(0', 'A,B = map(int,input().split())\n \nif 13 <= A:\n print(B)\nelif 6 <= A:\n print(int(B/2))\nelse :\n print(0)']
['Runtime Error', 'Accepted']
['s833224212', 's784645694']
[8900.0, 9160.0]
[21.0, 22.0]
[108, 110]
p03035
u760171369
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)']
['Runtime Error', 'Accepted']
['s028114553', 's319902900']
[2940.0, 2940.0]
[17.0, 17.0]
[99, 101]
p03035
u765629914
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 < 6 ):\n result = 0\nelif ( A < 13):\n result = B/2\nelse:\n result = B\n \nprint(result)', 'A, B = map( int, input().split() )\nif ( A < 6 ):\n result = 0\nelif ( A < 13 ):\n result = B/2\nelse:\n result = B\n \nprint( int(result) )']
['Runtime Error', 'Accepted']
['s498898529', 's657039948']
[2940.0, 2940.0]
[18.0, 17.0]
[113, 136]
p03035
u765865533
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<=5:\n print(0)\nelse:\n print(int(B/2)', 'A, B = map(int, input().split())\nif A>=13:\n print(B)\nelif A<=5:\n print(0)\nelse:\n print(int(B/2))']
['Runtime Error', 'Accepted']
['s253580562', 's392483247']
[3064.0, 2940.0]
[17.0, 17.0]
[104, 105]
p03035
u768559443
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...
['\nif a>=13:\n print(b)\nif a>=6 and a<=12:\n print(b//2)\nif a<=5:\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)']
['Runtime Error', 'Accepted']
['s049776606', 's519713456']
[2940.0, 2940.0]
[17.0, 17.0]
[74, 91]
p03035
u773246942
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 < 5:\n print(0)\nelif A < 12:\n C = B / 2\n print(C)\nelse :\n print(B)', 'A, B = map(int, input().split())\n\nif A <= 5:\n print(0)\nelif A <= 12:\n C = B / 2\n print(int(C))\nelse :\n print(B)']
['Runtime Error', 'Accepted']
['s852364064', 's327545381']
[9096.0, 9160.0]
[23.0, 24.0]
[99, 115]
p03035
u777215291
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_max, R_min = 0, 100000\nfor i in range(M):\n L, R = map(int,input().split())\n if L_max < L:\n L_max = L\n if R_min > R:\n R_min = R\nif R_min - L_max < 0:\n print(0)\nelse:\n print(R_min - L_max + 1)', 'A, B = map(int, input().split())\nif A > 12:\n print(B)\nelif 5 < ...
['Runtime Error', 'Accepted']
['s016046126', 's082638236']
[3060.0, 2940.0]
[17.0, 17.0]
[236, 107]
p03035
u779455925
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<=12:\n print(B/2)\nelif A>=13:\n print(B)', 'A,B=map(int,input().split())\nprint(0 if A<=5 else int(B/2) if A<=12 else B)\n']
['Runtime Error', 'Accepted']
['s580667512', 's693847772']
[2940.0, 2940.0]
[17.0, 17.0]
[99, 76]
p03035
u780675733
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 6 <= A < 13:\n print(b/2)\nelse:\n print('0)", "#A\nA, B = map(int, input().split())\nif A >= 13:\n print(B)\nelif 6 <= A < 13:\n print(int(B/2))\nelse:\n print('0')"]
['Runtime Error', 'Accepted']
['s044212882', 's707015676']
[2940.0, 2940.0]
[17.0, 17.0]
[110, 119]
p03035
u780698286
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 <= 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']
['s955999395', 's834741380']
[8884.0, 9136.0]
[24.0, 24.0]
[91, 106]
p03035
u783175749
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 6<= a >= 12:\n print(b/2)\nelse:\n print(b)', 'a,b=map(int,input().split())\n\nif a <= 5:\n print(0)\nelif 6<= a >= 12:\n print(b//2)\nelse:\n print(b)', 'a,b=map(int,input().split())\n\nif a <= 5:\n print(0)\nelif 6 <= a <= 12:\n pri...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s004225275', 's118314947', 's222968454']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[105, 106, 107]
p03035
u783229284
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(x) for x in input()]\n\nif A <= 5:\n print(0)\nelif 6<= a <= 12:\n print(int(B/2))\nelse:\n print(B)\n\n\n', 'A,B= [int(x) for x in input().split()]\n\nif A <= 5:\n print(0)\nelif 6<= a <= 12:\n print(int(B/2))\nelse:\n print(B)\n\n\n', 'A,B= [int(x) for x in input().split()]\n\nif A <= 5:...
['Runtime Error', 'Runtime Error', 'Accepted']
['s470689926', 's543059127', 's754122490']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[115, 123, 123]
p03035
u785644520
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 main():\n A, B = map(int, input().split())\n if A >= 13:\n print(A)\n elif 6 <= A <= 12:\n print(A // 2)\n else:\n print(0)\n\n\nif __name__ == '__main__':\n main()\n", "def main():\n A, B = map(int, input().split())\n if A >= 13:\n print(B)\n elif 6 <= A <= 12:...
['Wrong Answer', 'Accepted']
['s961443080', 's326923090']
[2940.0, 2940.0]
[17.0, 19.0]
[194, 194]
p03035
u787456042
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...
['#D\nn, m = list(map(int, input().split()))\nalist = list(map(int, input().split()))\nfor i in range(m) :\n b, c = list(map(int, input().split()))\n alist += [c] * min(n, b)\nalist.sort()\nprint(sum(alist))', 'a, b = list(map(int, input().split()))\nif a > 12 :\n print(b)\nelif a > 5 :\n print(b//2)\nelse ...
['Runtime Error', 'Accepted']
['s248307806', 's064783273']
[3060.0, 2940.0]
[17.0, 17.0]
[204, 112]