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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02755 | u335664637 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\na=input().split()\nA,B=int(a[0]),int(a[1])\np=math.floor(A/0.08)\np1=math.floor(B/0.10)\nif(p==p1):\n while True:\n l=p-1\n if(l*0.08!=A or l*0.1!=B):\n break\n p=l\n \n print(p)\nelse:\n print(-1)', 'import math\na=input().split()\nA,B=int(a[0]),int(a[1])\np=math.floor(A/0.08)\np1=ma... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s243140205', 's445014734', 's193572638'] | [3188.0, 3060.0, 3060.0] | [34.0, 17.0, 18.0] | [216, 136, 211] |
p02755 | u336093806 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b=map(int,input().split())\nlist1 = []\nlist2 = []\nif (a/0.08).is_integer():\n c1 = int(a/0.08)\nelse:\n c1=int(a/0.08)+1\nif ((a+1)/0.08).is_integer():\n c2 = int((a+1)/0.08)\nelse:\n c2=int((a+1)/0.08)+1\n\nfor i in range(c1,c2):\n list1.append(i)\n\nif (b/0.10).is_integer():\n c3 = int(b/0.10)... | ['Wrong Answer', 'Accepted'] | ['s784367293', 's664007151'] | [3064.0, 3064.0] | [19.0, 18.0] | [622, 557] |
p02755 | u336564899 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\na,b = map(int, input().split())\n\nfor i in range(10000):\n ans1 = math.floor(i*0.08)\n ans2 = math.floor(i*0.1)\n if ans1 == ans2:\n print(ans1)\n exit()\nprint(-1)\n', 'import math\na,b = map(int, input().split())\n\nfor i in range(1010):\n s = math.floor(i*0.08)\n t = math... | ['Wrong Answer', 'Accepted'] | ['s787653305', 's266644172'] | [2940.0, 3064.0] | [19.0, 18.0] | [193, 206] |
p02755 | u342563578 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A,B = map(int,input().split())\nq = 0\nfor i in range(math.ceil(12.5*A),int(12.5*(A+1))):\n if 10*B <= i < 10*(B+1):\n q = i\n break\nif q != 0:\n print(i)\nelse:\n print(-1)', 'A,B = map(int,input().split())\nimport math\nq = 0\nfor i in range(math.ceil(12.5*A),int(12.5*(A+1))):\n if 10*B <... | ['Runtime Error', 'Accepted'] | ['s791924387', 's475248764'] | [2940.0, 3060.0] | [18.0, 17.0] | [188, 200] |
p02755 | u343850880 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import sys\nstdin = sys.stdin\nsys.setrecursionlimit(10 ** 7)\n\ndef LI(): return list(map(int, stdin.readline().split()))\ndef LS(): return list(stdin.readline())\n\na,b = LI()\ntax8 = int(100/8*a)\ntax10 = int(100/10*b)\n# print(tax8,tax10)\nprint(max(tax8,tax10) if tax8==tax10 else -1)', 'import sys\nstdin = sys.s... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s370177989', 's544809327', 's675239224'] | [3064.0, 3064.0, 3188.0] | [19.0, 19.0, 19.0] | [278, 420, 422] |
p02755 | u344276999 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A,B = [int(i) for i in input().split()]\n\nfor n in range(1,101):\n print(n)\n if int(n*0.08) == A and int(n*0.1) == B:\n print(n)\n exit()\nprint("-1")', 'A,B = [int(i) for i in input().split()]\n\nfor n in range(1,1200):\n if int(n*0.08) == A and int(n*0.1) == B:\n print(n)\n exit()\nprint("-1")'] | ['Wrong Answer', 'Accepted'] | ['s278439366', 's625604031'] | [9172.0, 9096.0] | [29.0, 32.0] | [153, 143] |
p02755 | u345483150 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b=map(int,input().split())\nif a%2==0:\n aa=a*12.5\nelse:\n aa=a*12.5-0.5\nbb=b*10\n\nif bb<=aa and aa<bb+10:\n print(aa)\nelse:\n print(-1)', 'a,b=map(int,input().split())\nif a%2==0:\n aa=a*12.5\nelse:\n aa=a*12.5+0.5\nbb=b*10\n\nif bb<=aa and aa<bb+10:\n print(aa)\nelse:\n print(-1)', 'a,... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s199303705', 's480287517', 's927109413'] | [2940.0, 2940.0, 3064.0] | [17.0, 17.0, 17.0] | [144, 144, 128] |
p02755 | u349444371 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A,B=map(int,input().split())\nif (A/0.08)%1==0.0:\n a1=int(A/0.08)\nelse:\n a1=int(A/0.08)+1\nif (A/0.08)%1!=0.0:\n a2=int((A+1)/0.08)\nelse:\n a2=int((A+1)/0.08)-1\n\nif (B/0.1)%1==0.0:\n b1=int(B/0.1)\nelse:\n b1=int(B/0.08)+1\nif (B/0.1)%1!=0.0:\n b2=int((B+1)/0.1)\nelse:\n b2=int((B+1)/0.1... | ['Runtime Error', 'Accepted'] | ['s857179247', 's648596203'] | [3064.0, 3064.0] | [19.0, 17.0] | [562, 570] |
p02755 | u350093546 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ["a,b=map(int,input().split())\nx=0\nfor i in range(b*9+1,b*10+1):\n if (i*0.08)//1<=i*0.08 and i*0.08<(i*0.08)//1+1:\n print(i)\n x=i\n break\nif x==0:\n print('-1')", "a,b=map(int,input().split())\nfor i in range(b*9+1,b*10+1):\n if (i*0.08)//1<=i*0.08:\n print(i)\n break\nprint('-1')", "a,b=map(int... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s344355441', 's445964021', 's938567079'] | [3060.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [167, 119, 159] |
p02755 | u351480677 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a = input()\nq = int(input())\nb = 0\nfor i in range(q):\n qi=input()\n if qi==str(1):\n b = b+1\n else:\n qi = qi.split()\n if (int(qi[1])+b)%2==1:\n a = qi[2] + a\n else:\n a = a + qi[2]\nif b%2==1:\n a = a[::-1]\n print(a)\nelse:\n print(a)', 'aa,... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s136360017', 's173224147', 's969424726', 's935119133'] | [3064.0, 2940.0, 2940.0, 3060.0] | [17.0, 18.0, 18.0, 17.0] | [294, 1079, 1079, 219] |
p02755 | u353515464 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ["a, b = map(float, input().split())\nlowest = max([-(-a // 0.08), -(-b // 0.1)])\nhighest = min([-(-(a+1) // 0.08), -(-(b+1) // 0.1)])\ncomb = [-1, -1]\nfor target in range(int(lowest), int(highest+1)):\n\tcand = [(target*0.08)//1, (target*0.1)//1]\n\tif cand == [a, b]:\n\t\tcomb = cand\n\t\tbreak\nprint('{:.0f} {:.0f... | ['Wrong Answer', 'Accepted'] | ['s468901076', 's748918217'] | [3064.0, 3064.0] | [17.0, 18.0] | [331, 302] |
p02755 | u357751375 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\n\na,b = map(int,input().split())\n\nn = math.floor(a / 0.08)\nm = math.floor(b / 0.1)\nn2 = n + 1\nm2 = m + 1\n\np = math.floor(n * 0.08)\nq = math.floor(n * 0.1)\nx = math.floor(m * 0.08)\ny = math.floor(m * 0.1)\np2 = math.floor(n2 * 0.08)\nq2 = math.floor(n2 * 0.1)\nx2 = math.floor(m2 * 0.08)\ny2 = ma... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s504748361', 's909569581', 's172123493'] | [9256.0, 3064.0, 9252.0] | [30.0, 17.0, 31.0] | [629, 256, 627] |
p02755 | u360061665 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ["import math\na, b = map(int, input().split(' '))\n\nif a == b:\n\n ans = math.ceil(a*12.5)\n if ans*0.08 == a:\n if ans*0.1 == b:\n print(ans)\n exit()\n print('-1')\n exit()\n\n\nans = (b-a)*50\n\nif ans*0.08 == a:\n if ans*0.1 == b:\n while(1):\n ans -= ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s458254030', 's732336314', 's242185958'] | [3064.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [426, 318, 185] |
p02755 | u360515075 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A, B = map(int, input().split())\n\nprint ((B-A)*50)', 'import math\nA, B =map(int, input().split())\na, b = math.ceil(A/0.08), math.ceil(B/0.10)\nans = max(a,b)\nprint (ans if int(ans*0.08)==A and int(ans*0.10)== B else -1)'] | ['Wrong Answer', 'Accepted'] | ['s129539931', 's520008354'] | [3064.0, 3060.0] | [18.0, 17.0] | [50, 164] |
p02755 | u362563655 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A,B = map(int,input().split())\na1,a2 = int(A*12.5),int(A*12.5+12.5)\nb1,b2 = int(B*10),int(B*10+10)\n\nif (b2 < a1) or (a2 < b1):\n print(-1)\nelse:\n print(min(a1,b1))', 'A,B = map(int,input().split())\nif A % 2 == 1:\n a1,a2 = int(A*12.5)+1, A*12.5+12.5\nelse:\n a1,a2 = int(A*12.5),int(A*12.5+12.5)\nb1... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s302956709', 's579349716', 's552847003'] | [3060.0, 2940.0, 3060.0] | [20.0, 19.0, 17.0] | [168, 223, 225] |
p02755 | u363892646 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a, b = map(int, input().split())\nx = -1\nfor i in range(1, 101):\n if int(i * 0.8) == a and int(i * 1) == b:\n x = i\n break\nprint(x)', 'a, b = map(int, input().split())\nx = -1\nfor i in range(10, 1001):\n if int(i * 0.08) == a and int(i * 0.1) == b:\n x = i\n break\nprint(x)'] | ['Wrong Answer', 'Accepted'] | ['s354218382', 's417041529'] | [2940.0, 2940.0] | [17.0, 17.0] | [146, 151] |
p02755 | u363992934 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['b, c = map(int, input().split())\nb_before_min = b / 0.08\nb_before_max = (b+1) / 0.08\nc_before_min = c / 0.1\nc_before_max = (c+1) / 0.1\n\nif(c_before_min <= b_before_min and b_before_min <= c_before_max):\n print(b_before_min)\nelif(b_before_min <= c_before_min and c_before_min <= b_before_max):\n print(c_b... | ['Wrong Answer', 'Accepted'] | ['s296246512', 's034670402'] | [3060.0, 3060.0] | [17.0, 17.0] | [340, 411] |
p02755 | u364318561 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\ndef conv(a):\n for i in range(len(a)):\n a[i] = int(a[i])\n return a\ndef main(a,b):\n p_min = math.ceil((12.5)*a)\n q_min = math.ceil(10*b)\n p_maxi = math.ceil((12.5)*(a+1))-1\n q_maxi = q_min = math.ceil(10*(b+1))-1\n if p_min > q_maxi or q_min > p_maxi:\n return -1\... | ['Wrong Answer', 'Accepted'] | ['s596624185', 's967011673'] | [3064.0, 3060.0] | [18.0, 18.0] | [459, 339] |
p02755 | u364512840 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ["a, b = map(int, input().split())\nfor i in range(1002):\n if i*0.08==a and i*0.1==b:\n print(i)\n exit()\nprint('-1')", "a, b = map(int, input().split())\nprice = (a // 0.09)+1\nwhile (price * 0.08) => a:\n if (price * 0.1) //1== b:\n print(int(price))\n exit()\n price += 1\nprint... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s010235155', 's066563157', 's423670005', 's634373097', 's689284691', 's845503477', 's910591930', 's885526982'] | [2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 18.0, 17.0, 17.0, 17.0, 2108.0, 19.0] | [129, 180, 184, 228, 212, 226, 177, 139] |
p02755 | u364555831 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\n\nA, B = map(int, input().split())\n\nvolume_A = A / 0.08\nvolume_B = B / 0.1\n\nmin_A, max_A = volume_A, volume_A\nrange_A = 1 / 0.08\nmin_B, max_B = volume_B, volume_B\nrange_B = 1 / 0.1\n\nfor i in range(math.floor(volume_A - range_A), math.ceil(volume_A + range_A)):\n if math.floor(i * 0.08) == A:... | ['Runtime Error', 'Accepted'] | ['s079173074', 's125644559'] | [9248.0, 9056.0] | [29.0, 30.0] | [751, 819] |
p02755 | u368348632 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['tax = [int(n) for n in input().split()]\n\nmax_8tax = (tax[0]+1) / .08\nmin_8tax = (tax[0]) / .08)\nmax_10tax = int((tax[1]+1) / .1) - 1\nmin_10tax = int((tax[1]) / .1)\n\nr = -1\n\nfor i in range(min_10tax, max_10tax):\n if min_8tax <= i and i < max_8tax:\n r = i\n break\n\nprint(r)', 'tax = [int(n)... | ['Runtime Error', 'Accepted'] | ['s323956902', 's479607731'] | [2940.0, 3060.0] | [17.0, 18.0] | [287, 282] |
p02755 | u368579103 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b = list(map(int,input().split()))\nto = 0\n\nwhile 1:\n to += 100\n c = int(to * 0.08)\n d = int(to * 0.1)\n if c >= a and d >= b:\n \n while 1:\n to -= 1\n c = int(to * 0.08)\n d = int(to * 0.1)\n if c == a and d == b:\n print(to)\n exit()\n elif to % 100 == 0:\n ... | ['Wrong Answer', 'Accepted'] | ['s180275660', 's223889894'] | [3064.0, 3064.0] | [19.0, 18.0] | [331, 340] |
p02755 | u369752439 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import numpy as np\n\na, b = list(map(int, input().split()))\nminXa = int(np.ceil(a / 0.08))\nminXb = b * 10\nmaxXa = int(np.ceil((a+1) / 0.08))\nmaxXb = (b+1) * 10\n\nansX = 9999\nansY = 9999\nfor x in range(minXa, maxXa):\n if(int(x*0.1) == xb):\n ansX = x\n break\n\nfor y in range(minXb, maxXb):\n... | ['Runtime Error', 'Accepted'] | ['s563021483', 's800944349'] | [18740.0, 21548.0] | [1165.0, 1675.0] | [450, 449] |
p02755 | u370721525 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A, B = map(int, input().split())\n\ndown_a = A / 0.08\nup_a = (A+1) / 0.08\ndown_b = B / 0.1\nup_b = (B+1) / 0.1\n\na = [i for i in range(down_a, up_a)]\nb = [j for j in range(down_b, up_b)]\n\nans = -1\nfor num in a:\n if num in b:\n ans = num\n break;\nprint(ans)', 'import math\nA, B = map(int, input().split... | ['Runtime Error', 'Accepted'] | ['s663016263', 's151392262'] | [3064.0, 3064.0] | [17.0, 18.0] | [257, 301] |
p02755 | u374815848 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['from sys import stdin\n\nA, B = [int(x) for x in stdin.readline().rstrip().split()]\n\nmin_eight_ex_tax = float(A / 0.08)\nmax_eight_ex_tax = float((A + 1) / 0.08)\nmin_ten_ex_tax = float(B / 0.1)\nmax_ten_ex_tax = float((B + 1) / 0.1)\n\nres = float(-1)\nfor x in range(min_ten_ex_tax, max_ten_ex_tax, 1):\n if min... | ['Runtime Error', 'Accepted'] | ['s111193654', 's907759112'] | [3064.0, 3064.0] | [17.0, 17.0] | [473, 469] |
p02755 | u375193358 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\n\nA, B = map(int,input().split())\n\npricemax_A = math.floor((A+1)/0.08)\npricemin_A = math.floor(A/0.08)\n\npricemax_B = math.floor((B+1)/0.1)\npricemin_B = math.floor(B/0.1)\n\nif (pricemin_A <= pricemin_B and pricemax_A <= pricemax_B) or (pricemin_B <= pricemin_A and pricemax_B <= pricemax_A):\n pr... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s457749864', 's480188166', 's770652326', 's916180570', 's932290785', 's653094142'] | [3064.0, 3064.0, 3064.0, 2940.0, 3064.0, 3060.0] | [18.0, 23.0, 18.0, 18.0, 17.0, 20.0] | [497, 492, 542, 357, 428, 360] |
p02755 | u379794022 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['#!/usr/local/bin python\n# -*- coding: utf-8 -*-\n#\n# /home/remina/PycharmProjects/atcoder/C-TaxIncrease.py\n#\nimport sys\nimport math\n\n\ndef calc_notaxincluded_min_from_tax8(tax8: int) -> int:\n notaxincluded_min = int(tax8 / 0.08)\n return notaxincluded_min\n\n\ndef calc_notaxincluded_max_from_tax8(tax8: ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s029960275', 's451202582', 's471564451', 's503495872', 's552543853', 's580558917', 's590598121', 's976700379', 's217366547'] | [3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3060.0] | [17.0, 18.0, 18.0, 18.0, 17.0, 18.0, 18.0, 18.0, 18.0] | [1261, 1151, 1162, 1149, 1164, 1162, 1262, 1315, 255] |
p02755 | u389096708 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a, b = map(int, input().split())\nnum = -1\n\nfor i in range(100000):\n if a == math.floor(i*0.08):\n if b == math.floor(i*0.1):\n num = i\n break\nprint(num)', 'a, b = map(int, input().split())\nimport math\nnum = -1\n\nfor i in range(100000):\n if a == math.floor(i*0.08):\n ... | ['Runtime Error', 'Accepted'] | ['s912628086', 's354401989'] | [2940.0, 3060.0] | [18.0, 52.0] | [182, 199] |
p02755 | u389188163 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A, B = map(int, input().split())\n\na1 = (A+1)/0.08\na2 = A/0.08\nb1 = (B+1)/0.1\nb2 = B/0.1\nprint(a1, a2, b1, b2)\n\nif a2 >= b1 or b2 >= a1:\n print(-1)\nelse:\n print(int(max(a2, b2)))', 'import math\n\nA, B = map(int, input().split())\n\na1 = (A+1)/0.08\na2 = A/0.08\nb1 = (B+1)/0.1\nb2 = B/0.1\n\n\nif a2 >... | ['Wrong Answer', 'Accepted'] | ['s661901434', 's102073559'] | [9084.0, 9192.0] | [30.0, 29.0] | [183, 183] |
p02755 | u393881437 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\n\na, b = list(map(int, input().split()))\nresult = -1\nend_flag = False\nfor i in range(1, 101):\n if not end_flag:\n x = math.floor(i * 0.08)\n if int(x) == a:\n for j in range(1, 101):\n y = math.floor(j * 0.1)\n if i == j:\n ... | ['Wrong Answer', 'Accepted'] | ['s441193166', 's846158603'] | [3060.0, 3060.0] | [18.0, 24.0] | [507, 443] |
p02755 | u396723412 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b = map(int,input().split())\ntmp=0\nfor i in range(1250):\n x=int(a/0.08)\n y=int(b/0.1)\n if int(x)==int(y):\n print(int(x))\n tmp=1\n break\nif tmp==0:\n print(-1)', 'a,b = map(int,input().split())\ntmp=0\nfor i in range(a+b,1250):\n x=i*0.08\n y=i*0.1\n\n if int(x)==a a... | ['Wrong Answer', 'Accepted'] | ['s499494715', 's385509676'] | [3060.0, 3060.0] | [18.0, 18.0] | [191, 195] |
p02755 | u399721252 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a, b = [ int(v) for v in input().split() ]\nans = -1\nfor i in range(1, 101):\n if math.floor(i * 0.08) == a and math.floor(i * 0.1) == b:\n ans = i\n break\nprint(ans)', 'import math\na, b = [ int(v) for v in input().split() ]\nans = -1\nfor i in range(1, 10001):\n if math.floor(i * 0.08) == a an... | ['Runtime Error', 'Accepted'] | ['s412398423', 's470645804'] | [3060.0, 3060.0] | [19.0, 21.0] | [179, 193] |
p02755 | u406546804 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b=map(int, input().split())\nx=int(a*100/8)\nx2=int(b*100/10)\n\nif x != x2:\n\tprint(-1)\n\t\nelse:\n\tprint(x)', 'a,b=map(int, input().split())\n\nans =[]\nfor x in range(10*b+10):\n\tif a<=x*0.08<a+1 and b<=x*0.1<b+1:\n\t\tans.append(x)\nif len(ans) != 0:\n\tprint(min(ans))\nelse:\n\tprint(-1)\n'] | ['Wrong Answer', 'Accepted'] | ['s813717467', 's891649415'] | [2940.0, 3316.0] | [17.0, 19.0] | [103, 168] |
p02755 | u408071652 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import numpy as np\nA, B = map(int,input().split())\nminA = math.floor(A/0.08)\nmaxA = math.ceil((A+1)/0.08) -1\nminB = math.floor(B/0.08)\nmaxB = math.ceil((B+1)/0.08) -1\nif (minA>maxB) or (minB>maxA):\n print(-1)\nelse:\n print(min(minA,minB))\n', 'import math\nA, B = map(int,input().split())\nminA = math.ce... | ['Runtime Error', 'Accepted'] | ['s324196792', 's402675041'] | [12508.0, 3060.0] | [154.0, 18.0] | [244, 234] |
p02755 | u409542115 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['#Atcoder 158 class\nA,B = list(map(int,input().split()))\nz=0\nfor x in range(int(25*A/2)+1,int(25*(A+1)/2)):\n for y in range(int(10*B),int(10*(B+1))):\n if x==y:\n print(x)\n break\n else:\n z += 1\n if x==y:\n break\nif z==(int(25*(A+1)/2)-int(25*A/2))*(i... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s353309161', 's444311049', 's639332477'] | [3064.0, 3060.0, 3064.0] | [18.0, 18.0, 18.0] | [350, 226, 350] |
p02755 | u410118019 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b = map(int,input().split())\nfor i in range(10**5):\n if int(i*0.08)==a and int(i**0.1)==b:\n print(i)\n exit()\nprint(-1)', 'a,b = map(int,input().split())\nfor i in range(10**5):\n if int(i*0.08)==a and int(i*0.1)==b:\n print(i)\n exit()\nprint(-1)'] | ['Wrong Answer', 'Accepted'] | ['s863746333', 's383627663'] | [3064.0, 2940.0] | [50.0, 48.0] | [127, 126] |
p02755 | u411302151 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['from math import ceil, floor\nA, B = map(int, input().split())\n\nnl = ceil((A+1)/0.08)\nnh = floor(A/0.08)\n\nres = -1\nfor x in range(nh-10, nl+1):\n if floor(x*0.1) == B:\n res = x\n break\n\nprint(res)', 'from math import ceil, floor\nA, B = map(int, input().split())\n\nnl = ceil((A+1)/0.08)\nnh... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s585711284', 's896926610', 's237641581'] | [3060.0, 3060.0, 3060.0] | [18.0, 17.0, 18.0] | [211, 212, 189] |
p02755 | u411353821 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['def main():\n A, B = map(int, input().split())\n for i in range(1, 10000):\n if i * 0.08 == A and i * 0.1 == B:\n print(i)\n break\n else:\n print(-1)\n\n\nif __name__ == "__main__":\n main()\n', 'def main():\n A, B = map(int, input().split())\n for i in range(1, ... | ['Wrong Answer', 'Accepted'] | ['s786033984', 's708707493'] | [2940.0, 3060.0] | [19.0, 20.0] | [229, 239] |
p02755 | u411858517 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A, B = map(int, input().split())\n\nans = -1\nfor i in range(10 ** 3 + 1):\n if int(i * 0.08) == A and int(i * 0.1) == B:\n ans = i\n \nprint(ans)', 'A, B = map(int, input().split())\n\nans = -1\nfor i in range(10 ** 3 + 1):\n if int(i * 0.08) == A and int(i * 0.1) == B:\n ans = i\n break\n \nprint(a... | ['Wrong Answer', 'Accepted'] | ['s522588621', 's097711259'] | [2940.0, 3316.0] | [17.0, 21.0] | [146, 157] |
p02755 | u412760429 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['x, y = map(int, input().split())\ni1 = x*12.5\ni2 = y*10\nz = max(i1, i2)\nif z//12.5 != x or z//10 != y:\n print(-1)\nelse:\n print(z)', 'x, y = map(int, input().split())\ni1 = x * 12.5\ni2 = y * 10\ni1 += 0.5\ni1 //= 1\nz = max(i1, i2)\nif z // 12.5 != x or z // 10 != y:\n print(-1)\nelse:\n print(int(z))\n... | ['Wrong Answer', 'Accepted'] | ['s796142293', 's211925292'] | [3060.0, 2940.0] | [18.0, 18.0] | [130, 167] |
p02755 | u413165887 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a, b = map(int, input().split())\nx = a*100//8\nif x*0.1==b:\n print(x)\nelse:\n print(-1)', 'import sys\na, b = map(int, input().split())\n\nfor i in range(1, 10**5):\n if int(i*0.08)==a and int(i*0.1)==b:\n print(i)\n sys.exit()\nprint(-1)'] | ['Wrong Answer', 'Accepted'] | ['s331331655', 's270301086'] | [3064.0, 2940.0] | [17.0, 48.0] | [91, 157] |
p02755 | u415716267 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a = list(map(int,input().split()))\nx = [a[0]]\ny = [a[1]]\na = []\nb = []\nc = []\nd = 0\nwhile x[len(x)-1] < x[0] + 1:\n x.append(round(x[d] + 0.0001,4))\n y.append(round(y[d] + 0.0001,4))\n d += 1\nfor i in x:\n a.append(i/0.08)\nfor i in y:\n b.append(i/0.1)\nfor i in a:\n for i2 in b:\n ... | ['Time Limit Exceeded', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s002791517', 's500315673', 's582948678', 's916130688', 's239408308'] | [4340.0, 3064.0, 3060.0, 3572.0, 3060.0] | [2104.0, 29.0, 23.0, 34.0, 22.0] | [397, 230, 234, 248, 222] |
p02755 | u425236751 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b =map(int,input().split())\n\nans = min(a*100//8,b*100//10)\nif ans < 0:\n ans = -1\n \nprint(ans)\n', "a,b =map(int,input().split())\n\nans = b * 10\nstatus = ''\nfor i in range(10):\n 8*(ans + i)//100\n if(a == 8*(ans + i)//100):\n ans += i\n status = 'ok'\n break;\n\nif status =='ok':\n print(ans+... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s000802177', 's011463302', 's377270703'] | [2940.0, 3060.0, 3060.0] | [17.0, 17.0, 17.0] | [98, 220, 218] |
p02755 | u428416104 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['ab = list(map(int, input().split())) \na= ab[0]\nb=ab[1]\n\nx=[]\n\nx.append(a/0.08)\nx.append((a+1)/0.08)\nx.append(b/0.1)\nx.append((b+1)/0.1)\n\nprint(x)\nif x[0]<= x[2] and x[2]<x[1]:\n print(int(x[2]))\nelif x[2]<= x[0] and x[0] < x[3]:\n print(int(x[0]))\nelse:\n print(-1)\n', 'ab = list(map(int, input... | ['Wrong Answer', 'Accepted'] | ['s918719332', 's444742144'] | [3064.0, 3064.0] | [18.0, 18.0] | [272, 325] |
p02755 | u431573188 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a, b = map(int, input().split())\n\nx = (a * 100 // 8) + 1\ny = (b * 100 // 10) + 1\n\nif x * 10 // 100 != b:\n print(-1)\nelse:\n print(int(x))', 'a, b = map(int, input().split())\n\nx = a * 100 / 8\nif int(x) < x:\n x = int(x)+1\nelse:\n x = int(x)\ny = b * 100 / 10\nif int(y) < y:\n y = int(y)+1\nel... | ['Wrong Answer', 'Accepted'] | ['s193642774', 's115010659'] | [2940.0, 3064.0] | [19.0, 17.0] | [142, 314] |
p02755 | u432098488 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\n\nlist_8 = []\nlist_10 = []\n\nfor i in range(100):\n list_8.append( math.floor((i+1) * 12.5) )\n list_10.append( (i+1) * 10 )\n \nA, B = map(int, input().split())\n\nA_ = list_8[A]\nA = list_8[A-1]\n\nB_ = list_10[B]\nB = list_10[B-1]\n\nprint(A, A_, B, B_)\n\nif A_ < B or B_ < A:\n print(-1)\nelif ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s029766317', 's109292807', 's152153257', 's283963579', 's515791487', 's262982120'] | [3064.0, 3064.0, 2940.0, 3064.0, 3064.0, 3064.0] | [18.0, 17.0, 19.0, 17.0, 18.0, 18.0] | [333, 312, 309, 321, 313, 322] |
p02755 | u433371341 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import sys\n\nA, B = tuple(int(n) for n in input().split())\n\nfor q in range(0,10):\n p = 10*B + q\n if (p // 100)*8 == A:\n print(p)\n sys.exit(0)\n\nprint(-1)\n', 'import sys\n\nA, B = tuple(int(n) for n in input().split())\n\nfor q in range(0,10):\n p = 10*B + q\n if int(p * 0.08) == A:\... | ['Wrong Answer', 'Accepted'] | ['s803398852', 's200449341'] | [2940.0, 2940.0] | [17.0, 19.0] | [172, 173] |
p02755 | u434296044 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A,B=map(int,input().split())\ncal,cal2=0,0\nans=[]\n\nfor i in range(1200):\n cal=math.floor(i*0.08)\n cal2=math.floor(i*0.1)\n\n if cal==A and cal2==B:\n ans.append(i)\n\n\nif len(ans)>0:\n print(min(ans))\nelse :\n print(-1)\n', 'import math\nA,B=map(int,input().split())\ncal,cal2=0,0\nans=[]\... | ['Runtime Error', 'Accepted'] | ['s984572602', 's274061118'] | [2940.0, 3060.0] | [18.0, 18.0] | [234, 246] |
p02755 | u434311880 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A, B = map(int,input().split())\nimport math\na = list()\na.append(1000000)\ni = A/0.08\nj = (A+1)/0.08\nwhile i < j:\n if int(i) == i:\n k = int(i)\n a.append(k)\n i = i+1\n elif int(i) !=i:\n k = int(i+1)\n a.append(k)\n i = i+1\n\nb = list()\nb.append(1000000)\np = B... | ['Wrong Answer', 'Accepted'] | ['s136155836', 's369894905'] | [3064.0, 3188.0] | [17.0, 19.0] | [588, 654] |
p02755 | u436001578 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A,B = [int(i) for i in input().split()] \n\nFlag = False\n\nprice1 = int(A // 0.08) + 1\nprice2 = int(B // 0.1) + 1\n\nfor i in range(price1,price2+1):\n if int(i * 0.08) == A and int(i *0.1) == B:\n Flag = True\n price = i\n break\n\nif Flag == True:\n print(price)\nelse:\n print(-1)\n', 'A,B = [int(i) f... | ['Wrong Answer', 'Accepted'] | ['s627067543', 's324856622'] | [3060.0, 3060.0] | [17.0, 18.0] | [282, 369] |
p02755 | u437215432 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import numpy as np\ndef f(a, b):\n x = np.arange(1, 1001)\n xa = np.floor(x*0.08)\n xb = np.floor(x*0.10)\n for i, value in enumerate(x):\n if xa[i] == a and xb[i] == b:\n print(value)\n break\n else:\n print(-1)\n', '# ABC158C\n\n\n\n\nimport numpy as np\ndef f(a, b... | ['Wrong Answer', 'Accepted'] | ['s692715620', 's816881547'] | [27116.0, 27144.0] | [115.0, 108.0] | [254, 678] |
p02755 | u437351386 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b=list(map(int,input().split()))\nA=int(a*12.5)\nB=int(b*10)\n\nif A==B:\n print(A)\nelse:\n print(-1)\n', 'a,b=list(map(float,input().split()))\nimport sys\nfor i in range(100000):\n if int(i*8/100)==a and int(i*10/100)==b:\n print(i)\n sys.exit()\nprint(-1)\n\n \n '] | ['Wrong Answer', 'Accepted'] | ['s185424511', 's053290390'] | [2940.0, 3064.0] | [17.0, 52.0] | [100, 159] |
p02755 | u440161695 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A,B=map(int,input().split())\nif B==((5/4)*A)//1:\n for i in range(10):\n if ((10+i)*B)//1==((25/2)*A)//1:\n print((10+i)*B)\n exit()\nelse:\n print(-1)', 'A,B=map(int,input().split())\nif B==((5/4)*A)//1:\n for i in range(10):\n if (10+i)*B==((100+i)/8)*A:\n print((10+i)*B)\n exit()\nels... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s108867381', 's348377417', 's823220267', 's003843728'] | [3060.0, 3060.0, 2940.0, 2940.0] | [18.0, 18.0, 18.0, 21.0] | [160, 155, 80, 131] |
p02755 | u441320782 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\nA,B=map(int,input().split())\nXA = math.floor(A/0.08)\nXB = math.floor(B/0.1)\nif XA==XB:\n print(XA)\nelse:\n print(-1)', 'import math\nA,B=map(int,input().split())\nX=10001\nc=[]\n\nfor i in range(10,X):\n if math.floor(i*0.08)==A and math.floor(i*0.1)==B:\n c.append(i)\n\nif len(c)==0:\n print(... | ['Wrong Answer', 'Accepted'] | ['s401147518', 's863388065'] | [2940.0, 3060.0] | [17.0, 21.0] | [128, 201] |
p02755 | u444082822 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A,B=map(int,input().split())\nmiA=-(-A//0.08)\nmaA=-(-(A+1)//0.08)-1\nmiB=-(-B//0.1)\nmaB=-(-(B+1)//0.1)-1\nif max(miA,miB)<=maA and max(miA,miB)<=maB:\n print(max(miA,miB))\nelse:\n print(-1)', 'A,B=map(int,input().split())\nmiA=-(-A//0.08)\nmaA=-(-(A+1)//0.08)-1\nmiB=-(-B//0.1)\nmaB=-(-(B+1)//0.1)-1\nif max(miA,m... | ['Wrong Answer', 'Accepted'] | ['s349709542', 's067168374'] | [3060.0, 3064.0] | [18.0, 35.0] | [186, 191] |
p02755 | u446371873 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ["a,b = map(int,input().split())\nfor i in range(1, 1001):\n if floor(i * 0.08) == a and floor(i * 0.1) == b:\n print(i)\nelse:\n print('-1')\n", "a,b = map(int,input().split())\nx = int(a / 0.08)\ny = int(b / 0.1)\nif x == y:\n print(x)\nelse:\n print('-1')", "a,b = map(int,input().split())\nfor i in range(1, 1... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s183644375', 's424019075', 's524642659', 's948117263', 's801450590'] | [2940.0, 2940.0, 3060.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 18.0, 18.0] | [140, 107, 135, 133, 146] |
p02755 | u451012573 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ["from math import floor\n\nA, B = map(int, input().split())\n\nx1b = round(100 * A / 8)\nx2b = round(10 * B)\n\nx1t = floor(100 * (A + 0.99999) / 8)\nx2t = floor(10 * (B + 0.99999))\n\nprint('%d %d' % (x1b, x1t))\nprint('%d %d' % (x2b, x2t))\n\nif (x2b <= x1t and x1b <= x2t) or (x1b <= x2t and x2b <= x1t):\n print(... | ['Wrong Answer', 'Accepted'] | ['s153708793', 's076394538'] | [3064.0, 3064.0] | [18.0, 18.0] | [340, 177] |
p02755 | u453306058 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\nflag = 0\na,b = map(int,input().split())\nfor i in range(b*10,b*10+10):\n if math.floor(i*0.08) == a:\n print(i)\n flag = 1\n break\nif flag == 1:\n print(-1)', 'import math\nflag = 0\na,b = map(int,input().split())\n\nfor i in range(1,10000):\n if int(i*0.08) == a and int(i... | ['Wrong Answer', 'Accepted'] | ['s109623989', 's652710918'] | [3060.0, 3060.0] | [18.0, 18.0] | [189, 220] |
p02755 | u453623947 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a, b = map(int,input().split())\n\nfor i in range(1001):\n if i*0.08==a and i*0.10==b :\n print(i)\n exit()\nprint(-1)', 'a, b = map(int,input().split())\n\nfor i in range(1001):\n if i*0.08//1==a and i*0.10//1==b :\n print(i)\n exit()\nprint(-1)'] | ['Wrong Answer', 'Accepted'] | ['s515207895', 's940942548'] | [2940.0, 2940.0] | [18.0, 18.0] | [129, 135] |
p02755 | u455533363 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a, b = map(int,input().split())\n\nfor i in range (1251):\n if int(i*0.08)==a and int(i/10)==b:\n print(i)\n \nprint(-1)\n ', 'a, b = map(int,input().split())\n\nfor i in range (1251):\n if (int(i*0.08)==a) and (int(i/10)==b):\n print(i)\n exit()\n\nprint(-1)\n '] | ['Wrong Answer', 'Accepted'] | ['s777584704', 's130414724'] | [2940.0, 2940.0] | [19.0, 17.0] | [122, 135] |
p02755 | u460386402 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b=map(int,input().split())\n\nfor i in range(10000):\n A=i*0.08\n B=i*0.1\n if A==a and B==b:\n print(i)\n exit()\n\nprint(-1)', "a,b=map(int,input().split())\n\nn=a//0.08\nm=b//0.1\n\nif n==m:\n print(m)\nelse:\n print('-1')", 'a,b=map(int,input().split())\nans=(b-a)/0.02\n\nfor i in range(1,1000001):\n... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s577544405', 's873221321', 's004730140'] | [3060.0, 2940.0, 9112.0] | [21.0, 17.0, 290.0] | [128, 89, 172] |
p02755 | u463775490 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b=map(int,input().split())\nif b * 10 <= ((a * 25 + 24) // 2 and -(-a * 25 // 2) < (b + 1) * 10:\n print(max(-(-a*25//2), b * 10))\nelse:\n print(-1)', 'a, b = map(int,input().split())\nif b * 10 <= (a * 25 + 24) // 2 and -(-a * 25 // 2) < (b + 1) * 10:\n print(max(-(-a*25//2), b * 10))\nelse:\n print(... | ['Runtime Error', 'Accepted'] | ['s878919558', 's919365308'] | [2940.0, 2940.0] | [18.0, 17.0] | [154, 155] |
p02755 | u464205401 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['range(math.floor(a*100/8),math.floor((a+1)*100/8)+1):', 'import math\na,b=list(map(int,input().split()))\nans=-1\nfor i in range(math.floor(a*100/8),math.ceil(a*100/8)):\n if math.floor(i*10/100)==b:\n ans=i\n break\nprint(ans)', 'import math\na,b=list(map(int,input().split()))\nans=-1\nfor i in range(math.flo... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s258357631', 's543103762', 's573902917', 's344574805'] | [2940.0, 3060.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 18.0] | [53, 170, 180, 162] |
p02755 | u464912173 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a, b = map(int,input().split())\n\na1 =a//0.08\na2 =(a+1)//0.08\nb1 = b//0.1\nb2= (b+1)//0.1\n\nA=range(a1,a2+1)\nB=range(b1,b2+1)\n\nif set(A)&set(B)==set():\n print(-1)\nelse:\n C = set(A)&set(B)\n print(min(C))', 'a, b = map(int,input().split())\nans = -1\nfor i in range(10):\n num = 10*b + i\n if a <= nu... | ['Runtime Error', 'Accepted'] | ['s490500770', 's686703919'] | [3064.0, 2940.0] | [17.0, 17.0] | [202, 150] |
p02755 | u465101448 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\nA,B = list(map(int,input_[0].split()))\n\nA_min=12*A+math.floor(0.5*A)\nA_max=12*(A+1)+math.ceil(0.5*(A+1))\nB_min=10*B\nB_max=10*(B+1)\n\nprint(A_min,A_max,B_min,B_max)\nif A_max < B_min:\n print(-1)\nelif B_max < A_min:\n print(-1)\nelse:\n print(max(A_,B_))', 'import math\nA,B = list(map(int,... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s112993736', 's176866126', 's435392530', 's626234795'] | [3064.0, 3064.0, 3064.0, 3064.0] | [17.0, 18.0, 18.0, 18.0] | [268, 235, 266, 245] |
p02755 | u465900169 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import sys\n\nA, B = [int(x) for x in input().split()]\nfor x in range((A+1)*10,(B+1)*10+1):\n if A == x*8//100 and B == x//10:\n print(x)\n sys.exit()\nprint(-1)', 'import sys\n\nA, B = [int(x) for x in input().split()]\nfor x in range((A+1)*10,(B+1)*10):\n if A == x*8//100 and B == x//10:\n print(x)\n ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s029393038', 's306821654', 's315437210', 's450745218', 's543233603', 's658664014', 's746903821', 's368223173'] | [3060.0, 3064.0, 3060.0, 3064.0, 2940.0, 3060.0, 3060.0, 2940.0] | [17.0, 18.0, 18.0, 17.0, 17.0, 19.0, 19.0, 17.0] | [162, 160, 185, 158, 158, 196, 161, 160] |
p02755 | u469936642 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a, b = map(int, input().split())\n# x = (a * 100) // 8\ny = (b * 100) // 10\n\nfor i in range(y, y + 10):\n if (i * 10) // 100 = b and (i * 8) // 100 == a:\n print(i)\n exit()\nprint(-1)', 'a, b = map(int, input().split())\n# x = (a * 100) // 8\ny = (b * 100) // 10\n\nfor i in range(y, y + 10):\n if (i * 10) ... | ['Runtime Error', 'Accepted'] | ['s105218626', 's030225360'] | [2940.0, 2940.0] | [17.0, 18.0] | [185, 187] |
p02755 | u472696272 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b = map(int, input().split())\n\nfor i in range(1010):\n if int(i*0.08)==a and int(i*0.1)==b:\n print(i)\n break\n else:\n print(-1)', 'a,b = map(int,input().split())\nfor i in range(1010):\n if int(i*0.08)==a and int(i*0.1)==b:\n print(i)\n exit()\nprint(-1)\n'] | ['Wrong Answer', 'Accepted'] | ['s459506599', 's113176219'] | [3188.0, 2940.0] | [18.0, 17.0] | [138, 126] |
p02755 | u476124554 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\n\na,b = map(int,input().split())\n\n#x * 0.08 = a\n#y * 0.1 = b\n\nval1 = a / 0.08\nval2 = b / 0.1\n\nif math.floor(val1 * 0.08) == a and math.floor(val1 * 0.1) == b:\n print(val1)\nelif math.floor(val2 * 0.08) == a and math.floor(val2 * 0.1) == b:\n print(val2)\nelse:\n print(-1)', 'import math... | ['Wrong Answer', 'Accepted'] | ['s416594459', 's237980400'] | [3060.0, 3064.0] | [17.0, 18.0] | [288, 267] |
p02755 | u477915050 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['s = input()\nn = int(input())\n\nt = 0\nfor i in range(n):\n a = input().split()\n if int(a[0]) == 1:\n t += 1\n #s = s[::-1]\n else:\n if t % 2 == 1:\n s = s[::-1]\n t = 0\n if int(a[1]) == 1:\n s = a[2] + s\n if int(a[1]) == 2:\n s = s + a[2]\n \nprint(s)', 'import math\na = l... | ['Runtime Error', 'Accepted'] | ['s300975592', 's235861303'] | [3064.0, 3060.0] | [20.0, 47.0] | [278, 220] |
p02755 | u479835943 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A, B = [int(i) for i in input().split()]\nif B >= A and 4*(B-A) == A and 5*(B-A) == B:\n print(50*(B-A))\nelse:\n print(-1)\n ', 'A, B = [int(i) for i in input().split()]\nif B >= A and 4*(B-A) == A and 5*(B-A) == B:\n print(50(B-A))\nelse:\n print(-1)\n ', 'import math\nimport sys\nA, B = [int(i) for i in inpu... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s866521612', 's878075996', 's270187678'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 18.0] | [124, 123, 204] |
p02755 | u480200603 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a, b = map(int, input().split())\n\nfor i in range(1200):\n tax8 = int(a * 0.08)\n tax10 = int(a * 0.1)\n\n if a == tax8 and b == tax10:\n print(i)\n exit()\nelse:\n print(-1)', 'import math\na, b = map(int, input().split())\n\nfor i in range(1251):\n tax8 = math.floor(a * 0.08)\n tax1... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s066699061', 's267652452', 's365618721', 's615778872', 's739751182', 's811825844', 's937624614', 's512119816'] | [3060.0, 3060.0, 3060.0, 2940.0, 3060.0, 3060.0, 3064.0, 3060.0] | [18.0, 18.0, 18.0, 17.0, 18.0, 18.0, 18.0, 18.0] | [191, 217, 217, 148, 217, 208, 190, 181] |
p02755 | u485716382 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\nimport fractions\n\nA, B = map(int, input().split(" "))\n\n\nif fractions.gcd(A, B) == 1:\n print(\'-1\')\n\n\nc = min(A, B) + 1\nisFinish = True\nwhile isFinish:\n c += 1\n\n if math.floor(c * 0.08) == A and math.floor(c * 0.1) == B:\n print(str(c))\n isFinish = False', 'import fr... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s377725536', 's627407003', 's695669560', 's843875945', 's524089813'] | [5048.0, 5560.0, 3060.0, 5048.0, 2940.0] | [2104.0, 51.0, 20.0, 37.0, 17.0] | [286, 130, 245, 258, 166] |
p02755 | u488178971 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A,B= map(int,input().split())\nfor i in range(1300):\n if int(i*0.08)==A and int(i*0.1)==B:\n print(int(i*0.08))\n exit()\nprint(-1)', '\nA,B= map(int,input().split())\nfor i in range(1300):\n if int(i*0.08)==A and int(i*0.1)==B:\n print(i)\n exit()\nprint(-1)'] | ['Wrong Answer', 'Accepted'] | ['s891715273', 's628920486'] | [9052.0, 9092.0] | [23.0, 25.0] | [144, 135] |
p02755 | u489155878 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['#C\nimport math\n\nA,B=map(int,input().split())\n\n\nc=0\nd=0\nc=max([math.floor(A/0.08),math.floor(B/0.1)])\nd=min([math.ceil((A+1)/0.08),math.ceil((B+1)/0.1)])\nprint(c,d)\nx=-1\nfor i in range(c,d+1):\n if math.floor(i*0.08)==A and math.floor(i*0.1)==B:\n z=i\n break\nprint(z)\n', '#C\nimport math... | ['Runtime Error', 'Accepted'] | ['s758454946', 's401115263'] | [3064.0, 3064.0] | [19.0, 18.0] | [296, 284] |
p02755 | u490489966 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['#C\nimport sys\n\na,b=map(int,input().split())\nfor i in range(1,1000):\n if int(i*0.08)==a and int(i*0.1)==b:\n print(i,i*0.08,i*0.1)\n break\n if i==999:\n print(-1)\n sys.exit()\n\nprint(ans)\n', 'import sys\na,b=map(int,input().split())\nfor i in range(1,1100):#max_a=1\n if in... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s159697411', 's397710558', 's705823615'] | [3060.0, 3060.0, 2940.0] | [18.0, 18.0, 18.0] | [217, 184, 201] |
p02755 | u493318999 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b = map(int,input().split())\nif a/0.08 == a//0.08:\n emin = a//0.08\nelse:\n emin = a//0.08+1\nif (a+1)/0.08 == (a+1)//0.08:\n emax = (a+1)//0.08-1\nelse:\n emax = (a+1)//0.08\ntmin = b/0.1\ntmax = (b+1)/0.1-1\nif tmax > emax:\n if tmin <= emax:\n print(tmin)\n else:\n print(-1)\nel... | ['Wrong Answer', 'Accepted'] | ['s622286220', 's936225916'] | [3064.0, 3064.0] | [18.0, 17.0] | [374, 385] |
p02755 | u493555013 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A,B = map(int,input().split())\n\na = A//0.08\nb = B//0.1\na2 = (A+1)//0.08\nb2 = (B+1)//0.1\nans = max(a,b)\nif a > b:\n if a > b2:\n ans = -1\nelse:\n if b > a2:\n ans = -1\nprint(int(ans))', 'import math\nA,B = map(int,input().split())\n\na = math.ceil(A/0.08)\nb = math.ceil(B/0.1)\na2 = math.c... | ['Wrong Answer', 'Accepted'] | ['s333824219', 's981515167'] | [3188.0, 3064.0] | [19.0, 18.0] | [198, 252] |
p02755 | u497046426 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A, B = map(int, input().split())\nfor i in range(1, 101):\n if int(i*1.08) == A and int(i*1.1) == B:\n print(i)\n break\nelse:\n print(-1)', 'A, B = map(int, input().split())\nfor i in range(1, 10001):\n if int(i*0.08) == A and int(i*0.1) == B:\n print(i)\n break\nelse:\n print... | ['Wrong Answer', 'Accepted'] | ['s395641289', 's987435519'] | [2940.0, 2940.0] | [18.0, 20.0] | [152, 154] |
p02755 | u500944229 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b = map(int,input().split())\na_interval = [a/0.08,(a+1)/0.08]\nb_interval = [b/0.1,(b+1)/0.1]\na_interval = [x for x in range(int(a_interval[0]),int(a_interval[1])+1) if (x < a_interval[1])&(x > a_interval[0])]\nb_interval = [x for x in range(int(b_interval[0]),int(b_interval[1])+1) if (x < b_interval[1])&(x > b_i... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s670266246', 's834169626', 's214072646'] | [3064.0, 3064.0, 3060.0] | [18.0, 18.0, 18.0] | [423, 348, 241] |
p02755 | u502508885 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ["a, b = list(map(float, input().split()))\n\nc = float((b/0.1)//1)\n\n\nwhile True:\n if (c*0.0800)//1 == a:\n print(c)\n exit()\n elif (c*0.080)//1 > a or (c*0.1)//1 != b:\n print('-1')\n exit()\n else:\n c += 1.0\n", 'a, b = map(int, input().split())\n\nfor i in range(1, 1... | ['Wrong Answer', 'Accepted'] | ['s374683502', 's142960223'] | [3060.0, 3060.0] | [17.0, 61.0] | [245, 341] |
p02755 | u504256702 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A, B = map(int, input().split())\n\nfor i in range(25, 32):\n print(25 * 0.08)\n\nans = -1\nfor i in range(int(B / 0.1), int(A / 0.08) + 5):\n if int(i * 0.08) == A and int(i * 0.1) == B:\n ans = i\n break\nprint(ans)', 'A, B = map(int, input().split())\n#print((A + 1) / 0.08)\nans = -1\nfor i in range(int(B ... | ['Wrong Answer', 'Accepted'] | ['s955953409', 's399750103'] | [3060.0, 3064.0] | [17.0, 17.0] | [215, 195] |
p02755 | u504704647 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['s = input().split()\nA = int(s[0])\nB = int(s[1])\n\nA_price_low = A / 0.08\nB_price_low = B / 0.1\nA_price_high = (A+1) / 0.08\nB_price_high = (B+1) / 0.1\n\nif B_price_low <= A_price_low < B_price_high:\n if A_price_low % 2 == 0:\n print(int(A_price_low))\n else:\n print(int(A_price_low) + 1)\ne... | ['Wrong Answer', 'Accepted'] | ['s329926733', 's116651135'] | [3060.0, 3060.0] | [18.0, 18.0] | [323, 389] |
p02755 | u506671931 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ["a, b = map(int, input().split())\n\nx = -1\n\nxa = 0\nxb = 0\n\na_arr = []\nb_arr = []\n\nfor temp_a in range(10001):\n xa = temp_a * 0.08\n if xa // 1 == a:\n a_arr.append(temp_a)\n\nfor temp_b in range(10001):\n xb = temp_b * 0.1\n if xb // 1 == b:\n b_arr.append(temp_b)\n\n\n\nprint(a_arr... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s895605670', 's938219506', 's619636583'] | [3064.0, 3064.0, 3060.0] | [28.0, 28.0, 27.0] | [396, 395, 370] |
p02755 | u506970032 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['num = {}\n\nnum = input().split()\n\nprint(num)\n\nanswer1 = int(int(num[0]) / 0.08)\nanswer2 = int(int(num[1]) / 0.1)\n\nkensyo1 = int(answer1 * 0.1) == int(num[1])\nkensyo2 = int(answer2 * 0.08) == int(num[0])\n\nprint(kensyo1, kensyo2)\n\nif kensyo1:\n print(int(int(num[0]) / 0.08))\nelif kensyo2:\n print(int(in... | ['Wrong Answer', 'Accepted'] | ['s467311213', 's289257319'] | [3064.0, 3064.0] | [20.0, 17.0] | [336, 427] |
p02755 | u508061226 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a, b = input().split();\na = int(a);\nb = int(b);\n\nfor x in range(1,101):\n tax_8 = int(x * 0.08);\n tax_10= int(x * 0.1);\n if tax_8 == a and tax_10 == b:\n \tans = x;\n break;\n elif x == 101:\n ans = -1;\n else:\n pass;\n \nprint(ans);\n ', 'a, b = input().split();\na = int(a);\nb = int(b);\n\nf... | ['Runtime Error', 'Accepted'] | ['s354371031', 's165453280'] | [2940.0, 3316.0] | [17.0, 23.0] | [243, 246] |
p02755 | u508164527 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\nA,B = (int(x) for x in input().split())\nminA = math.ceil(A/0.08)\nminB = math.ceil(B/0.1)\nif minA >= minB:\n if minB*0.08 >= A:\n print(minA)\n else:\n print(-1)\nelse:\n if minA*0.1>= B:\n print(minB)\n else:\n print(-1)\n ', 'import math\nA,B = (int(x) for x in input().split())\nminA... | ['Wrong Answer', 'Accepted'] | ['s496919115', 's039399354'] | [3060.0, 3060.0] | [17.0, 18.0] | [242, 324] |
p02755 | u508273185 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b = map(int,input().split())\ni = 0\nans = 0\nwhile i<=1000:\n i += 1\n if i*0.08>=a and i*0.1>=b:\n ans=i\n break\n else:\n ans=-1\n break\nprint(ans)', 'import math\na,b = map(int,input().split())\ni = 0\nans = []\nwhile i<=1000:\n i += 1\n if math.floor(i*0.08)==a and m... | ['Wrong Answer', 'Accepted'] | ['s147660952', 's510372662'] | [3064.0, 3064.0] | [17.0, 18.0] | [179, 289] |
p02755 | u509725329 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ["a,b= map(int, input().split())\n\namin = a//0.08\namax = (a+1)//0.08\nbmin = b//0.1\nbmax = (b+1)//0.1\n\nif a%0.08 > 0:\n\tamin += 1\nif (a+1)%0.08:\n\tamax -= 1\nif b%0.1 > 0:\n\tbmin += 1\nif (b+1)%0.1 > 0:\n\tbmax -= 1\n\nif amin <= bmin:\n\tif bmin <= amax:\n\t\tprint(bmin)\n\telse:\n\t\tprint('-1')\nelse:\n\tif... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s830057226', 's906283819', 's782693024'] | [3188.0, 3064.0, 3064.0] | [19.0, 17.0, 18.0] | [335, 331, 359] |
p02755 | u512099209 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\n \nA, B = list(map(int, input().split()))\n \nrangeA = [A / 0.08, (A + 1) / 0.08]\nrangeB = [B / 0.1, (B + 1) / 0.1]\n \nif rangeA[0] < rangeB[0]:\n if math.ceil(rangeB[0]) < rangeA[1]:\n print(math.ceil(rangeB[0]))\n exit(0)\nelif rangeA[0] > rangeB[0]:\n if math.ceil(rangeA[0]) < rangeB[1]:\n ... | ['Runtime Error', 'Accepted'] | ['s888461328', 's698568698'] | [3064.0, 3064.0] | [17.0, 21.0] | [508, 509] |
p02755 | u513081876 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\n\nA, B = map(int, input().split())\nbig = math.floor(max(A, B) / 0.08)\nsma = math.floor(min(A, B) / 0.1)\nnum_list = [int(i) for i in range(sma, big + 1)]\n\nfor i in num_list:\n if i * 0.08 == A and i * 0.1 == B:\n print(i)\n break\nelse:\n print(-1)', 'import math\n\nA, B = map(int... | ['Wrong Answer', 'Accepted'] | ['s228968720', 's882021506'] | [3064.0, 3064.0] | [18.0, 18.0] | [273, 301] |
p02755 | u514390882 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A, B = map(int, input().split())\na = int(A // 0.08)\nans_lst = []\nfor i in range(20):\n print(a, int(a * 0.08) == A)\n if int(a * 0.08) == A:\n ans_lst.append(a)\n a += 1\nfor i in ans_lst:\n if int(i * 0.1) == B:\n print(i)\n break\nelse:\n print(-1)', 'A, B = map(int, input().s... | ['Wrong Answer', 'Accepted'] | ['s042931048', 's754534931'] | [3064.0, 3060.0] | [18.0, 18.0] | [276, 278] |
p02755 | u514401521 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a, b = map(int, input().split())\n\nans = -1\n\nfor i in range(1011):\n _a = i * 0.08\n _b = i * 0.1\n if _a == a and _b == b:\n ans = i\n break\nprint(ans)', 'a, b = map(int, input().split())\n\nans = -1\n\nfor i in range(1011):\n _a = int(i * 0.08)\n _b = int(i * 0.1)\n if _a == a an... | ['Wrong Answer', 'Accepted'] | ['s840490344', 's760921617'] | [3060.0, 2940.0] | [28.0, 18.0] | [169, 179] |
p02755 | u515740713 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import sys \nimport math\nread = sys.stdin.buffer.read\nreadline = sys.stdin.buffer.readline\nreadlines = sys.stdin.buffer.readlines\nA, B = map(int, readline().split())\nA1 = math.ceil(A / 0.08)\nB1 = math.ceil(B / 0.1)\nA2 = int((A+1) / 0.08)\nB2 = int((B+1) / 0.1)\nprint(A1,A2)\na = min(A1,B1)\nb = max(A2,B2)\nfor... | ['Wrong Answer', 'Accepted'] | ['s526269208', 's667507207'] | [9108.0, 9252.0] | [30.0, 27.0] | [424, 398] |
p02755 | u516589098 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['A, B = [int(i) for i in input().split()]\n\nans = []\n\ntrue_A_max = A + 0.999\ntrue_B_max = B + 0.999\n\nX_A = math.floor(A / 0.08)\nX_max_A = math.ceil(true_A_max /0.08)\nX_B = math.floor(B / 0.1)\nX_max_B = math.ceil(true_B_max /0.08)\n\nif X_max_A - X_A >= X_max_B - X_B:\n X_min = X_B\n X_max = X_max_B\n\ne... | ['Runtime Error', 'Accepted'] | ['s333439723', 's919689114'] | [3064.0, 3064.0] | [18.0, 17.0] | [569, 582] |
p02755 | u517152997 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['#\nimport sys\nimport math\nimport numpy as np\nimport itertools\n\n\na, b = (int(i) for i in input().split())\n\np = []\nanswer=-1\nfor i in range(1,101):\n if int(i*0.08) == a:\n p.append(i)\n\nfor i in p:\n if int(i*0.1) == b:\n answer = i\n break\n\n#print(answer)\nprint("-1")\n\n', '#\... | ['Wrong Answer', 'Accepted'] | ['s023049876', 's607466980'] | [21396.0, 14448.0] | [324.0, 152.0] | [309, 298] |
p02755 | u517447467 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import math\nN = list(map(int, input().split()))\nX = [i for i in range(math.ceil((N[0]-1)*(1/0.08)), int((N[0])*(1/0.08))+1)]\nY = [i for i in range(math.ceil((N[1]-1)*(1/0.10)), int((N[1])*(1/0.10))+1)]\n\n\n\n\ncand = set(X) & set(Y)\nif len(cand) == 0:\n print(-1)\nelse:\n print(min(cand))\n', 'import math\nN =... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s321291706', 's452991208', 's469337819', 's734640279', 's836643562', 's927157333', 's409890827'] | [3064.0, 3064.0, 3188.0, 3064.0, 3064.0, 3064.0, 3064.0] | [17.0, 17.0, 19.0, 17.0, 18.0, 17.0, 18.0] | [336, 289, 282, 286, 285, 240, 345] |
p02755 | u518891382 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['import sys\n\nA,B = map(float,input().split())\n\nval_1 = A / 0.08\nval_2 = B / 0.10\n\ni = 1\n\nif int(val_1) == int(val_2):\n print(int(val_1))\n sys.exit()\n\nelse:\n while val_1 != val_2:\n\tval_2 = (B + 0.1*i)/0.1\n\ti += 1\n\tif val_1 < val_2:\n print(-1)\n sys.exit()\n\nprint(int... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s486764752', 's686516546', 's315504196'] | [8980.0, 9040.0, 8916.0] | [25.0, 28.0, 34.0] | [302, 560, 181] |
p02755 | u520276780 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['#O(1)\nfrom math import ceil\na,b = map(int, input().split( ))\nif int(min(a/0.08,b/0.1))<ceil(max(a/0.08,b/0.1)):\n print(-1)\n exit()\nprint(ceil(max(a/0.08,b/0.1)))\n\n', '\na,b = map(int, input().split( ))\n\nmn = int(a/(0.1))-5\nmx = int(b/0.08)+3\n\nfor i in range(mn,mx):\n if int(i*0.08)==a and int(i*... | ['Wrong Answer', 'Accepted'] | ['s347293521', 's988975050'] | [2940.0, 3064.0] | [17.0, 18.0] | [169, 213] |
p02755 | u520331522 | 2,000 | 1,048,576 | Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d... | ['a,b = map(int, input().split())\nx = int(a / 0.08)\ny = int(b / 0.1)\n\nif x > 0 and y > 0 and x == y:\n print(x)\nelse:\n print(-1)', 'a,b = map(int, input().split())\nx = int(a / 0.08)\ny = int(b / 0.1)\n\nif x > 0 and y > 0 and x == y:\n print(x)\nelif x > 0 and y > 0 and x != y:\n print(min(x,y))\nelse:\n pr... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s865801131', 's927529724', 's249714479'] | [3064.0, 3060.0, 3064.0] | [18.0, 17.0, 20.0] | [127, 178, 131] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.