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 | u115877451 | 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())\nn=math.ceil((a*100)/8)\nm=int((a*100)/10)\nresult=[]\nfor i in range(m-100,n+100):\n print(i)\n if math.floor(i*0.08)==a and math.floor(i*0.1)==b:\n result.append(i)\nif result==[]:\n print(-1)\n exit()\nprint(min(result))\n', 'import math\na,b=map(int,inp... | ['Wrong Answer', 'Accepted'] | ['s732085112', 's547781048'] | [9160.0, 9120.0] | [29.0, 30.0] | [273, 260] |
p02755 | u116038906 | 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 \n\nx = A/0.08\nx_1 =(A+1)/0.08\ny = B/0.1\ny_1 = (B+1)/0.1\n\nx_2 = {i for i in range(int(x),int(x_1) if i<=100)}\ny_2 = {i for i in range(int(y),int(y_1) if i<=100)}\nmoto_nedan = x_2 & y_2\nif len(moto_nedan) == 0:\n print("-1")\nelse:\n print(min(moto_nedan))', 'A,B =map(int,... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s559038804', 's795792405', 's029738334'] | [2940.0, 3064.0, 3064.0] | [17.0, 18.0, 18.0] | [322, 348, 366] |
p02755 | u116348130 | 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\nmid_a = 12.5 * a\nmid_b = 10 * b\n\na_range = [\n i for i in range(\n math.ceil(mid_a),\n math.floor(\n mid_a +\n 12 +\n 1)) if i > 0]\nb_range = [\n i for i in range(\n math.ceil(mid_b),\n math.floor(\... | ['Wrong Answer', 'Accepted'] | ['s146735138', 's640614271'] | [3064.0, 3064.0] | [18.0, 18.0] | [461, 463] |
p02755 | u119012830 | 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(1001):\n if int(i*0.08) == A and (i * 0.1) == B:\n print(i)\n exit()\n print("-1")', 'A, B = map(int, input().split())\nfor i in range(10000):\n if int(i*0.08) == A and (i * 0.1) == B:\n print(i)\n exit()\n print("-1")\n'... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s025578395', 's099502384', 's533737326', 's699738906', 's533665457'] | [2940.0, 2940.0, 3188.0, 2940.0, 2940.0] | [18.0, 22.0, 18.0, 17.0, 23.0] | [150, 152, 162, 150, 183] |
p02755 | u125545880 | 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... | ['\nA, B = map(int, input().split())\n\n#maxA = A+0.99\n#maxB = B+0.99\n\nmaxA = A+1\nmaxB = B+1\n\ngAmin = A/8 * 100\ngAmax = maxA/8 * 100\n\ngBmin = B*10\ngBmax = maxB * 10\n\n#print(gAmin)\n#print(gAmax)\n#print(gBmin)\n#print(gBmax)\n\nif gAmax <= gBmin or gBmax <= gAmin:\n ans = -1\nelif gAmin <= gBmin:\n an... | ['Wrong Answer', 'Accepted'] | ['s829963503', 's091797748'] | [3060.0, 2940.0] | [17.0, 17.0] | [386, 294] |
p02755 | u129961029 | 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())\nb*=10\nans=0\n\nfor i in range(8):\n j=b\n j+=i \n if math.floor(j*0.08)==a:\n ans=j\n break\nif ans!=0:\n print(ans)\nelse :\n print(-1)\n', 'import math\na,b=map(int,input().split())\nb*=10\nans=0\n\nfor i in range(8):\n j=b\n j+=i \n if m... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s016569102', 's586326073', 's188139442'] | [2940.0, 2940.0, 3060.0] | [18.0, 18.0, 17.0] | [193, 193, 189] |
p02755 | u131000248 | 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())\n\nfor p in range(13, 1250):\n\tif int(p * 0.08) == A and int(p * 0.1) == B:\n\t\tprint(p)\n\t\texit()\n\nprint(-1)\n', 'A, B = map(int, input().split())\n\nans = -1\n\nfor p in range(13, 1350):\n if p * 0.08 == A and p * 0.1 == B:\n ans = p\n break\n\nprint(ans)\n', 'A, B = ... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s015365603', 's680066771', 's844746525', 's387884451'] | [2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 19.0, 17.0, 18.0] | [129, 151, 126, 161] |
p02755 | u131411061 | 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 = list(map(int,input().split()))\n\n resultA = A * 8 / 100\n resultB = B * 1 / 100\n\n #print(resultA)\n \n answer = -1\n\n if(round(resultA * 0.08) == A and round(resultA * 0.1) == B):\n answer = resultA\n if(round(resultB * 0.08 == A and round(resultB * 0.1) == B)):\... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s222731988', 's597909367', 's091871840'] | [3060.0, 3064.0, 3060.0] | [17.0, 22.0, 17.0] | [434, 428, 305] |
p02755 | u131638468 | 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())\ncand_b=[b*11 + i for i in range(b)]\ndef ans(cand):\n for price in cand:\n if int(price*0.08)==a:\n print(price)\n return\n print(-1)\n\nans(cand_b)', 'a,b=map(int,input().split())\ncand_b=[b*10 + i for i in range(b)]\ndef ans(cand):\n for price in cand:\n if int(price... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s460081825', 's635018979', 's428830460'] | [2940.0, 3064.0, 3060.0] | [17.0, 17.0, 18.0] | [184, 184, 209] |
p02755 | u132049876 | 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())\nAmin = A//0.08\nAmax = A+1//0.08\nArange = set(range(Amin, Amax+1))\nBmin = B//0.1\nBmax = B+1//0.1\nBrange = set(range(Bmin, Bmax+1))\nintersection = Arange & Brange\nprint(min(intersection))', 'A, B = map(int, input().split())\nAmin = A//0.08\nAmax = A//0.1\nArange = set(range(Amin... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s204775973', 's225659393', 's294733981', 's360415953', 's594816133', 's838129157', 's963420666', 's474895967'] | [3060.0, 3060.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0] | [17.0, 18.0, 18.0, 18.0, 24.0, 18.0, 17.0, 18.0] | [218, 210, 332, 282, 294, 435, 276, 474] |
p02755 | u133134242 | 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\nfrom math import floor\na,b = map(int,input().split())\nl1 = ceil((a-0.50001)/0.08)\nr1 = floor((a+0.5)/0.08)\nl2 = ceil((a-0.50001)/0.1)\nr2 = floor((a+0.5)/0.1)\nl3 = max(l1,l2)\nr3 = min(r2,r1)\nif(l3<=r3):\n print(l3)\nelse:\n print(-1)\n\n\n', 'from math import ceil\nfrom math import... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s105591292', 's519336093', 's450278349'] | [3060.0, 3060.0, 3188.0] | [17.0, 17.0, 55.0] | [260, 260, 265] |
p02755 | u135116520 | 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())\nj=A*12.5\nk=(A+1)*12.5\nl=B*12.5\nm=(B+1)*12.5\nN=[]\nO=[]\nfor i in range(j,k+1):\n N.append(i)\nfor h in range(l,m+1):\n O.append(h)\nN_set=set(N)\nO_set=set(O)\nmatched_list=list(N_set&O_set)\nprint(min(matched_list))', 'import math\nA,B=map(int,input().split())\nC=[]\nfor i in rang... | ['Runtime Error', 'Accepted'] | ['s006349600', 's580609405'] | [3064.0, 3060.0] | [17.0, 18.0] | [238, 188] |
p02755 | u135961419 | 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()))\n\nfor p in range(1000):\n if int((p + 1) * 0.08) == a and int((p + 1) * 0.1) == b:\n print(p)\n break\n if p == 999:\n print('-1')", "a, b = list(map(int,input().split()))\n\nfor p in range(1000):\n if int((p + 1) * 0.08) == a and int((p + 1) * 0.1) == b:\n print(... | ['Wrong Answer', 'Accepted'] | ['s089719836', 's747444867'] | [3064.0, 2940.0] | [17.0, 18.0] | [173, 177] |
p02755 | u136282556 | 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\nlist1=[]\nlist2=[]\na=A*100/8\nb=(A+1)*100/8\nc=B*10\nd=(B+1)*10\n\ns=math.floor(a)\nt=c\nwhile s<b:\n list1.append(s)\n s=s+1\n\nwhile t<d:\n list2.append(t)\n t=t+1\n\nx=0\nfor i in list2:\n x=x+list1.count(i)\n if x==1:\n y=i\n print(str... | ['Wrong Answer', 'Accepted'] | ['s149368976', 's856527037'] | [9120.0, 9200.0] | [30.0, 32.0] | [342, 219] |
p02755 | u141574039 | 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())\np=0;q=0\np=A/0.08\nq=p//10\nif q==B:\n print(p)\nelse:\n print(-1)', 'A,B=map(int,input().split())\np=0;q=0;x=0;f=0\np=A/0.08\nq=(A+0.99)/0.08\nx=p\n#print(p,q,x*0.1//1)\nwhile x<q:\n if (x*0.1)//1==B:\n print(x)\n f=1\n break\n else:\n x=x+0.01\nif f==0:\n print(-1)', '... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s186276665', 's928396335', 's285772697'] | [2940.0, 3064.0, 3060.0] | [17.0, 19.0, 18.0] | [91, 198, 160] |
p02755 | u145600939 | 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())\nans = -1\n\nfor i in range(1001):\n if int(i*0.08) == a and int(i*0.1) == b:\n ans = i\nprint(ans)', 'a,b = map(int,input().split())\nans = -1\n\nfor i in range(1001):\n if int(i*0.08) == a and int(i*0.1) == b:\n ans = i\n break\nprint(ans)\n'] | ['Wrong Answer', 'Accepted'] | ['s144714406', 's423558036'] | [2940.0, 3064.0] | [18.0, 20.0] | [128, 139] |
p02755 | u152402277 | 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... | ['list = []\nA,B = map(int ,input().split())\nfor i in range(13,10001):\n if i*0.08 == A and i*0.10 == B:\n print(i)\n break\nelse:\n print("-1")', 'list = []\nA,B = map(int ,input().split())\nfor i in range(13,10001):\n if int(i*0.08) == A and int(i*0.10) == B:\n print(i)\n break\n... | ['Wrong Answer', 'Accepted'] | ['s883133177', 's800108521'] | [3060.0, 3060.0] | [19.0, 20.0] | [156, 166] |
p02755 | u152614052 | 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())\np1 = a // 0.08\np2 = b // 0.1\nans = math.inf\n\nif math.floor(p1 * 0.1) == b:\n ans = p1\nif math.floor(p2 * 0.08) == a:\n ans = min(ans,p2)\nif ans == math.inf:\n ans = -1\nprint(int(ans))', 'import math\na,b = map(int,input().split())\np,ans = int(b / 0.1),-1\n... | ['Wrong Answer', 'Accepted'] | ['s076382673', 's219022949'] | [9136.0, 9160.0] | [31.0, 29.0] | [232, 172] |
p02755 | u158583803 | 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(x) for x in input().split())\nprint(a)\nprint(b)\n\nam=int(100/8*a)\nal=int(100/8*(a+1))\nif (a%4)==0:\n al=al-1\n\nbm=int(10*b)\nbl=int(10*(b+1))-1\n\nprint (am,al)\nprint (bm,bl)\nfor ia in range(am,al+1):\n for ib in range(bm,bl+1):\n \t\tif ia==ib:\n \t\t\tprint (ia)\n \t\t\... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s083283018', 's207400367', 's283144044'] | [3064.0, 3060.0, 3060.0] | [17.0, 17.0, 18.0] | [315, 317, 181] |
p02755 | u162893962 | 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\nprint(a, b)\n\nif a / 10 == b / 10 or abs(a / 10 - b/10) <= 1:\n print(int(max(a, b)))\nelse:\n print('-1')\n", "import math\nA, B = map(int, input().split())\n\nis_true = False\nfor x in range(1, 10000):\n if A == math.floor(x * 0.08) and B == m... | ['Wrong Answer', 'Accepted'] | ['s423059047', 's778074021'] | [3064.0, 2940.0] | [19.0, 21.0] | [168, 236] |
p02755 | u164029270 | 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().rstrip().split()]\nAa = A/0.08\nBa = B/0.1\nround=lambda x:int((x*2+1)//2)\nN = round(max(Aa,Ba))\n\ndef ch(n):\n global A,B\n print(int(n * 0.08), A, int(n * 0.1), B)\n if int(n * 0.08) == A and int(n * 0.1) == B:\n return True\n else:\n return False\n\nif ch(... | ['Wrong Answer', 'Accepted'] | ['s807878105', 's289306534'] | [3188.0, 3064.0] | [18.0, 18.0] | [369, 370] |
p02755 | u164678731 | 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... | ['# -*- coding: utf-8 -*-\nfrom math import floor, ceil\na, b = map(int, input().split())\nlow = floor(a / 0.08)\nhigh = ceil(a / 0.09)\nfor i in range(low, high + 1):\n if b == floor(i * 0.10):\n print(i)\n break\nelse:\n print(-1)\n ', '# -*- coding: utf-8 -*-\nfrom math import floor, ceil\na, ... | ['Wrong Answer', 'Accepted'] | ['s739632843', 's635920075'] | [3060.0, 2940.0] | [17.0, 18.0] | [245, 217] |
p02755 | u169350228 | 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())\ne = 10**-7\nmi = max(math.ceil(a*12.5),b*10)\nma = min(int((a-1)+*12.5),b*10-1)\nif mi > ma:\n print(-1)\nelse:\n print(mi)\n', 'a, b = map(int,input().split())\ne = 10**-4\nmi = max(int((a+e)/0.08),int((b+e)/0.1))\nma = min(int((a+1+e)/0.08),int((b+e+1)/0.1))\nprin... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s296609659', 's959495324', 's059137770'] | [3064.0, 3060.0, 3060.0] | [17.0, 18.0, 17.0] | [168, 188, 184] |
p02755 | u170410075 | 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())\nA=math.ceil((a+1)/0.08)-1\nB=math.ceil((b+1)/0.1)-1\nA_=math.ceil(a/0.08)\nB_=math.ceil(b/0.1)\nC=(B//0.1)-(B//0.08)\nif b>80 or A<B_ or b-a>C:\n print(-1)\nelse:\n print(A_)\n', 'import math\na,b=map(int,input().split())\nA=math.ceil((a+1)/0.08)-1\nB=math.ceil((b+1)/0... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s195980075', 's251764334', 's284272484', 's579241569'] | [3060.0, 3060.0, 3060.0, 2940.0] | [19.0, 21.0, 17.0, 18.0] | [214, 231, 216, 193] |
p02755 | u172251139 | 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\ntext = list(map(int, input().split()))\n\nreply = -1\ni = 0\nwhile math.floor(i * 0.08) <= text[0] and math.floor(i * 0.1) <= text[1]:\n print([i, math.floor(i * 0.08), math.floor(i * 0.1)])\n if math.floor(i * 0.08) == text[0] and math.floor(i * 0.1) == text[1]:\n reply = i\n break\n... | ['Wrong Answer', 'Accepted'] | ['s748522686', 's031509364'] | [3188.0, 3060.0] | [23.0, 18.0] | [331, 273] |
p02755 | u173148629 | 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 \nS=max(12.5*A,10*B)\n \nif S%1!=0:\n S=int(S)+1\n \nif S<12.5*A+12.5 and S<10*B+10:\n print(S)\nelse:\n print("-1")', 'A,B=map(int,input().split())\n\nS=max(12.5*A,10*B)\n\nif S%1!=0:\n S=int(S)+1\n\nif S<12.5*A+12.5 and S<10*B+10:\n print(int(S))\nelse:\n print("-1")... | ['Wrong Answer', 'Accepted'] | ['s071608804', 's151376368'] | [2940.0, 2940.0] | [17.0, 17.0] | [146, 149] |
p02755 | u173394055 | 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\nA, B = map(int, input().split(' '))\nx0 = ceil(A / 0.08)\nx1 = ceil((A+1) / 0.08)\ny0 = ceil(B / 0.1)\ny1 = ceil((B+1) / 0.1)\nprint(x0, x1, y0, y1)\nif x1 < y0:\n print(-1)\nelse:\n print(min(max(x0, y0), min(x1, y1)))", "from math import ceil\nA, B = map(int, input().split(' '))\nx0 = ceil(... | ['Wrong Answer', 'Accepted'] | ['s909104118', 's250891611'] | [3064.0, 3188.0] | [17.0, 20.0] | [234, 225] |
p02755 | u175590965 | 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(1300):\n if i == a*12.5 and b*10:\n print(i)\n exit()\nprint(-1)', 'a,b = map(int,input().split())\nax = a*12.5\nbx = b*10\nif ax==bx :\n print(bx)\nelse:\n print(-1)', 'a,b = map(int,input().split())\n\nfor i in range(1300):\n if i == a*12.5... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s186898094', 's679438875', 's945984386', 's797363472'] | [9036.0, 2940.0, 9108.0, 9164.0] | [25.0, 18.0, 30.0, 31.0] | [125, 98, 128, 139] |
p02755 | u177505697 | 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... | ['cmin = lambda a,b : a if a<b else b\ncmax = lambda a,b : a if a>b else b\niin = lambda : int(input())\nlin = lambda : list(map(int,input().split()))\nrin = lambda n : [int(input()) for _ in range(n)]\n\na,b = map(int,input().split())\n\nia = a//(0.08)\nla = int(ia*0.08)\nwhile la==a:\n ia += 1\n la = int(ia*0.0... | ['Runtime Error', 'Accepted'] | ['s811100677', 's726779289'] | [3064.0, 3064.0] | [18.0, 19.0] | [715, 415] |
p02755 | u183308534 | 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\ns = input()\n\nss = s.split(" ")\n\nTAX_A = 0.08\nTAX_B = 0.1\n\nA = int(ss[0])\nB = int(ss[1])\n\n\n\nans = 10000\nre = False\nfor i in range(1000,0,-1):\n tax_a = math.floor( i * TAX_A ) \n tax_b = math.floor( i * TAX_B )\n if tax_a == A and tax_b == B:\n if i < ans :\n print("update ans:"... | ['Wrong Answer', 'Accepted'] | ['s087893674', 's117692246'] | [3064.0, 3064.0] | [18.0, 26.0] | [382, 351] |
p02755 | u185393907 | 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\nfrom decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN\na = list(map(int, input().split(" ")))\nmin8 = a[0]/0.08\nmax8 = (a[0]+1)/0.08\nmin10 = a[1]/0.1\nmax10 =(a[1]+1)/0.1\na = max(min8, min10)\nif ((min8>=max10) or (max8<=min10)):\n print(-1)\nelse:\n print(Decimal(b).quantize(Decimal(\'0\'... | ['Runtime Error', 'Accepted'] | ['s642523049', 's482258793'] | [5204.0, 5332.0] | [36.0, 36.0] | [334, 334] |
p02755 | u187883751 | 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(10000):\n if int(i * 0.08) == A and int(i * 0.1) == B:\n print(i)\n break\nelse:\n print(-1)\n', 'a,b=map(int,input().split())\nfor i in range(10000):\n if int(i*0.08) == A and int(i*0.1) == B:\n print(i)\n break\nelse:\n print(-1)\n... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s560708764', 's639352418', 's500842896'] | [9156.0, 9112.0, 9016.0] | [28.0, 25.0, 28.0] | [152, 148, 158] |
p02755 | u189516107 | 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\nx1 = -(-25*A//2)\nx2 = 25*(A+1)//2\nx3 = 10*B\nx4 = 10*(B+1)\nprint(x1, x2, x3, x4)\n\nif x1 <= x3 and x3 < x2:\n print(x3)\nelif x3 <= x1 and x1 < x4:\n print(x1)\nelse:\n print(-1)', 'A, B = map(int, input().split())\n\nx1 = -(-25*A//2)\nx2 = 25*(A+1)//2\nx3 = 10*B\nx4 = 10*(B... | ['Wrong Answer', 'Accepted'] | ['s176680078', 's703509868'] | [3064.0, 3060.0] | [17.0, 18.0] | [208, 212] |
p02755 | u190873802 | 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 \ni=1\nwhile i<=10000:\n if i*0.08==A and i*0.1==B:\n print(i)\n quit()\n i+=1\nprint(-1)', 'A, B = map(int, input().split())\n \ni=0\nwhile i<10000:\n if A*0.08==i and B*0.1==i:\n print(i)\n quit()\nprint(-1)', 'A, B = map(int, input().split())\n \ni=1\nwhile i<=1000... | ['Wrong Answer', 'Time Limit Exceeded', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s147577212', 's232190264', 's336612648', 's494335195', 's530578890', 's696680424', 's744550028', 's808707222', 's847191108', 's918913176'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 3060.0, 3060.0, 3064.0, 3060.0] | [21.0, 2104.0, 21.0, 20.0, 18.0, 23.0, 22.0, 17.0, 21.0, 26.0] | [124, 116, 124, 124, 112, 138, 138, 134, 123, 141] |
p02755 | u201082459 | 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(b * 10,(b + 1) * 10):\n if int(x * 0.08) == a and int(x * 0.1) == b:\n print(x)\n break\n else:\n print(-1)', 'a,b = map(int,input().split())\nfor x in range(b * 10,(b + 1) * 10):\n if int(x * 0.08) == a and int(x * 0.1) == b:\n print... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s147208831', 's715117418', 's023683781'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 18.0] | [175, 175, 167] |
p02755 | u201408380 | 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()))\n\na = int(A*12.5)\nb = B*10\nans = -1\n\nif a < b:\n for i in range(a, b+2):\n if (int(i*0.1) == B) and (int(i*0.08) == A):\n ans = i\n\nelse:\n for i in range(b, a+2):\n if (int(i*0.1) == B) and (int(i*0.08) == A):\n ans = i\n\nprint(ans)... | ['Wrong Answer', 'Accepted'] | ['s542545257', 's535187160'] | [3064.0, 3064.0] | [18.0, 18.0] | [303, 363] |
p02755 | u205936263 | 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 sys\n(A, B) = list(map(int, input().split()))\n\nprice_A = 0\nprice_B = 0\n\nprice_A = math.ceil(A / 0.08)\nprice_B = math.ceil(B / 0.1)\nprint(price_A,price_B)\n\nmin_price = min(price_A, price_B)\nmax_price = max(price_A, price_B)\n\nfor i in range(min_price, max_price+1, 1):\n tax_A = int(i ... | ['Wrong Answer', 'Accepted'] | ['s054388881', 's813048738'] | [3064.0, 3064.0] | [18.0, 17.0] | [448, 425] |
p02755 | u206133536 | 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 \ndef check(X):\n global A\n global B\n return (int)(X*0.08) == A and (int)(X*0.1) == B\n \nfor x in range(1, max(A, B)*11):\n if check(x):\n print(x)\n exit(0)\n \nprint(-1)', 'A, B = map(int, input().split())\n\ndef check(X):\n global A\n global B\n return (int)(X*0.0... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s373865349', 's482507200', 's323359886'] | [3060.0, 3064.0, 3060.0] | [18.0, 18.0, 19.0] | [207, 204, 207] |
p02755 | u212263866 | 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... | ['taxs = input().split(" ")\n \na = int(taxs[0])\nb = int(taxs[1])\n \nproduct_min = int(a / 0.08)\nproduct_max = int((a+1) / 0.08)\n\nfor product in range( product_min, product_max ):\n\tbpred = int(product * 0.1)\n\tif( bpred == b ):\n \t\tprint( product )\n break\n\nprint( -1 )', 'taxs = input().split(" ")\n... | ['Runtime Error', 'Accepted'] | ['s390020029', 's247406256'] | [2940.0, 3064.0] | [17.0, 18.0] | [269, 313] |
p02755 | u212823607 | 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())\nlsta = list(range(math.ceil(a/0.08), int((a+1)/0.08)+1))\nlstb = list(range(math.ceil(b/0.1), int((b+1)/0.1)+1))\nprint(lsta)\nprint(lstb)\nfor la in lsta:\n for lb in lstb:\n if la==lb:\n print(la)\n exit()\nprint(-1)', 'import math\na, b = map(int, input(... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s064710908', 's238839407', 's378369894', 's780943331', 's824235365', 's707944880'] | [3064.0, 3060.0, 3188.0, 3064.0, 2940.0, 3060.0] | [18.0, 17.0, 20.0, 17.0, 17.0, 17.0] | [268, 251, 243, 119, 121, 252] |
p02755 | u215286521 | 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\nnums = list(map(int, input().split()))\na = nums[0]\nb = nums[1]\n\nfor i in range(10000):\n if math.floor(i * 0.08) == a and math.floor(i*0.1) == b:\n print(i)\n break\n\nprint(-1)', 'import math\n\nnums = list(map(int, input().split()))\na = nums[0]\nb = nums[1]\n\nfor i in range(1200):\n ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s048016834', 's849314061', 's973617446'] | [3060.0, 2940.0, 3060.0] | [20.0, 20.0, 17.0] | [196, 197, 214] |
p02755 | u215315599 | 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 int(10*B*0.08) == A:\n print(10*B)\nelse:\n print(-1)', 'A, B = map(int,input().split())\n\nfor i in range(1,2000):\n if int(i*0.08) == A and int(i*0.10) == B:\n print(i)\n exit()\nprint(-1)'] | ['Wrong Answer', 'Accepted'] | ['s256554806', 's259899156'] | [2940.0, 3060.0] | [17.0, 18.0] | [91, 144] |
p02755 | u215341636 | 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().strip().split())\nx = math.floor(a / 0.08)\ny = math.ceil((a + 1) / 0.08)\nans = -1\n\nfor i in range(1250):\n if math.floor(i * 0.1) == b:\n ans = i\n break\n\nprint(ans)', 'import math\n\na , b = map(int, input().strip().split())\nans = -1\n\nfor i in range(1300):\n i... | ['Wrong Answer', 'Accepted'] | ['s007926398', 's613625789'] | [3060.0, 2940.0] | [18.0, 18.0] | [206, 181] |
p02755 | u216392490 | 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\nsys.setrecursionlimit(int(1e6))\n\nA, B = map(int, input().split())\n\npa = A / 0.08\npb = B / 0.10\n\nif int(pa) == int(pb):\n print(int(pa))\nelif int(pa + 0.08) == int(pb):\n print(min(int(pa + 0.08), int(pb)))\nelif int(pa) == int(pb + 0.1):\n print(min(int(pa), int(pb + 0.1)))\n... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s070363241', 's658033106', 's182315353'] | [3192.0, 3064.0, 3060.0] | [20.0, 18.0, 19.0] | [398, 342, 262] |
p02755 | u216888678 | 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\nwhile i > 0:\n X=int(i*0.08)\n Y=int(i*0.10)\n if A==X and B==Y:\n break\n i=i+1\nif i==100:\n i=-1\n print(i)\nelse:\n print(i)\n', 'A,B=map(int,input().split())\ni=0\nwhile i<1001:\n X=int(i*0.08)\n Y=int(i*0.10)\n if A==X and B==Y:\n br... | ['Wrong Answer', 'Accepted'] | ['s377728575', 's718006121'] | [3064.0, 2940.0] | [17.0, 18.0] | [180, 182] |
p02755 | u217936379 | 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\nA1 = A * 12.5\nA2 = (A + 0.9) * 12.5\nB1 = B * 10\nB2 = (B + 0.9) * 10\n\nif B1 <= A1 and A1 < (B + 1) * 10:\n print(math.floor(A1 + 1))\nelif A1 <= B1 and B1 < (A + 1) *12.5 :\n print(math.floor(B1))\nelse:\n print(-1)', 'import math\n\nA, B = map(int, inpu... | ['Wrong Answer', 'Accepted'] | ['s044436723', 's296350860'] | [3060.0, 3064.0] | [18.0, 18.0] | [265, 248] |
p02755 | u223555291 | 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\nwhile i <= 1000:\n\n if a==int(i*0.08) and b==int(i*0.1):\n print(i)\nprint(-1)', 'a,b=map(int,input().split())\ni=0\nwhile i <= 10000:\n\n if a==int(i*0.08) and b==int(i*0.1):\n print(i)\nprint(-1)', 'a,b=map(int,input().split())\ni=0\nwhile i <= 10000:\n\n i... | ['Time Limit Exceeded', 'Time Limit Exceeded', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s156209199', 's255927375', 's450124859', 's970881696', 's924314877'] | [2940.0, 2940.0, 2940.0, 2940.0, 3064.0] | [2104.0, 2104.0, 22.0, 23.0, 24.0] | [118, 119, 128, 132, 175] |
p02755 | u223904637 | 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 i*108//100==a and i*11//10==b:\n print(i)\n exit()\nprint(-1)', 'a,b=map(int,input().split())\nfor i in range(1,100000):\n if i*8//100==a and i*1//10==b:\n print(i)\n exit()\nprint(-1)\n'] | ['Wrong Answer', 'Accepted'] | ['s478731133', 's143825297'] | [2940.0, 3064.0] | [17.0, 35.0] | [131, 132] |
p02755 | u224119985 | 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 x in range(10000):\n if (int(x*0.08)==a and int(x*0.1)==b):\n print"x"\n else:\n print"-1"', '(A,B)=map(int, input().split())\n \nfor x in range(10000):\n if (int(x*0.08)==A) and (int(x*0.1)==B):\n print"x"\n break\n else:\n print"-... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s558805654', 's651703373', 's686029469', 's714462360', 's445444105'] | [2940.0, 2940.0, 2940.0, 3572.0, 2940.0] | [21.0, 17.0, 17.0, 27.0, 20.0] | [143, 160, 157, 160, 152] |
p02755 | u225596320 | 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=100*a/8\ny=100/8*(a+1)\nz=10*b\nw=10*(b+1)\nimport math\nif max(math.ceil(z),math.ceil(x))<min(y,w)1 3 :\n print(math.ceil(max(z,x)))\nelse:\n print(-1) ', 'a,b=map(int,input().split())\nx=100*a/8\ny=100/8*(a+1)\nz=10*b\nw=10*(b+1)\nimport math\nif max(math.ceil(z),math.ceil(x... | ['Runtime Error', 'Accepted'] | ['s981734885', 's861097124'] | [2940.0, 3064.0] | [17.0, 18.0] | [185, 182] |
p02755 | u226191225 | 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\na = [math.ceil(a * 12.5),(a + 1) * 12.5]\nb = [math.ceil(b * 10),math.floor((b + 1) * 10)]\nprint(a)\nprint(b)\nif max(a[0], b[0]) < min(a[1], b[1]):\n print(max(a[0], b[0]))\nelse:\n print(-1)', 'import math\na, b = map(int,input().split())\n\na = [math.ceil(a * ... | ['Wrong Answer', 'Accepted'] | ['s364113814', 's012254747'] | [3188.0, 3064.0] | [18.0, 17.0] | [237, 241] |
p02755 | u228303592 | 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())\nans =-1\nfor i in range(10000,-1,-1):\n money0 = int(i*0.08)\n money1= int(i*0.1)\n if money0==a and money1==b:\n \nprint(ans)', 'a,b = map(int,input().split())\nans = int(input())\nfor i in range(1001,-1,-1):\n money0 = int(i*0.08)\n money1= int(i*0.1)\n if money0==a and mone... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s465706579', 's661991564', 's732783985'] | [9044.0, 9040.0, 9132.0] | [23.0, 27.0, 29.0] | [157, 175, 164] |
p02755 | u228636605 | 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\nfor i in range(1000):\n if math.floor(i * 0.08) == a and math.floor(i* 0.1) == b:\n print(i)\n break\nprint(-1)', 'import math\n\na , b = map(int , input().split())\n\nfor i in range(100 , 1000):\n if math.floor(i * 0.08) == a and math.floor(i* ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s059985803', 's497317221', 's774262504', 's786408947', 's816941309', 's308069591'] | [2940.0, 2940.0, 2940.0, 3064.0, 3060.0, 3064.0] | [18.0, 18.0, 21.0, 18.0, 18.0, 18.0] | [173, 180, 175, 223, 178, 195] |
p02755 | u233239721 | 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\nc = math.ceil(a/0.08)\nd = round(b/ (0.1))\ne = math.floor((a+1)/0.08)\nf = round((b+1)/0.1)-1\ni = c\nj = -1\nfor i in range(c,e+1):\n if d <= i <= f:\n j = i\n break\n else:\n i = i+1\nprint(j', 'a,b = map(int,input().split())\nimport math\nc =... | ['Runtime Error', 'Accepted'] | ['s238844368', 's591436234'] | [2940.0, 3064.0] | [17.0, 17.0] | [252, 254] |
p02755 | u238084414 | 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())\nf = False\nn = A * 100 // 9\nm = A * 100 // 7\n\nfor i in range(n, m + 1):\n if n * 100 // 8 == A and n // 10 == B:\n f = True\n break\n n += 1\nprint(n if f else -1)\n', 'A, B = map(int, input().split())\nf = False\nans = 0\nn = A * 100 // 9\nprint(n)\nm = A * 100 // 7\nprin... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s564884813', 's675675051', 's750225127', 's326268821'] | [2940.0, 3188.0, 2940.0, 3060.0] | [18.0, 18.0, 17.0, 18.0] | [199, 290, 163, 217] |
p02755 | u239368018 | 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\nc = math.ceil\nmin8, max8 = c(a*12.5), c((a+1)*12.5)\nmin10, max10 = c(b*10), c((b+1)*10)\n\nl8, l10 = list(range(min8, max8)), list(range(min10, max10))\ns8, s10 = set(l8), set(l10)\n\nss = s8 & s10\nprint(min8, max8, min10, max10)\nprint(min(ss) if len(ss) >0 else -1... | ['Wrong Answer', 'Accepted'] | ['s595114202', 's148705473'] | [9212.0, 9204.0] | [31.0, 32.0] | [322, 324] |
p02755 | u239917977 | 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\n A, B = map(int, input().split())\n v_A = int(A / 0.08)\n v_B = int(B / 0.1)\n v_A2 = int((A+1) / 0.08)\n v_B2 = int((B+1) / 0.1)\n\n A_cand = [i for i in range(v_A+1, v_A2)]\n B_cand = [i for i in range(v_B+1, v_B2)]\n\n # print(A_cand)\n # print(B_cand)\n ab_cand = set(A... | ['Wrong Answer', 'Accepted'] | ['s112377790', 's291150875'] | [3064.0, 3064.0] | [17.0, 19.0] | [469, 566] |
p02755 | u240630407 | 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())\ntarget = -1\nfor i in range(1300):\n if int(i*0.08) == int(i*0.1):\n target = i\nprint(target)', 'A, B = map(int, input().split())\ntarget = -1\nfor i in range(1300):\n if int(i*0.08) == A and int(i*0.1) == B:\n target = i\nprint(target)\n', 'A, B = map(int, input().split())\... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s734381178', 's957333359', 's595325776'] | [9092.0, 8940.0, 9160.0] | [30.0, 29.0, 29.0] | [127, 139, 149] |
p02755 | u241159583 | 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 int(i**0.08)==a and int(i*0.1)==b:\n print(i)\n exit()\nprint(-1)', 'a,b = map(int, input().split())\n\nfor i in range(1, 1001):\n if int(i * 0.08) == a and int(i * 0.1) == b:\n print(i)\n exit()\nprint(-1)'] | ['Wrong Answer', 'Accepted'] | ['s130047673', 's063867093'] | [9332.0, 9080.0] | [31.0, 34.0] | [140, 138] |
p02755 | u244836567 | 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)\nx=10\ny=int(x*8/100)\nz=int(x*10/100)\nfor i in range(10000):\n if y==a and z==b:\n print(x)\n else:\n x=x+1', 'a,b=input().split()\na=int(a)\nb=int(b)\nx=10\ny=int(x*8/100)\nz=int(x*10/100)\ni=0\nwhile x<10000:\n if int(x*8/100)==a and int(x*10/100)==b:\n print(x)... | ['Wrong Answer', 'Accepted'] | ['s026142326', 's888039197'] | [9116.0, 9044.0] | [30.0, 32.0] | [147, 203] |
p02755 | u245299791 | 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=B*10\nif num*0.08==A:\n ans=num\nelse:\n com=A*12.5 if A%2==0 else int(A*12.5)+1\n if int(com*0.10)==B:\n ans=com\n else:\n ans=-1\nprint(ans)', 'A,B=map(int,input().split())\nans=-1\nfor i in range(4950):\n a=int(i*0.08)\n b=int(i*0.10)\n if a==A and b==B:\n ans=i\n ... | ['Wrong Answer', 'Accepted'] | ['s400141719', 's625168415'] | [3064.0, 2940.0] | [17.0, 20.0] | [176, 140] |
p02755 | u245960901 | 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 = list(map(int, input().split()))\nn = s[0]\na = s[1]\nflag = 0\nif n/0.08 > a/0.1:\n ans = int(a/0.1)\n while ans <= n/0.08:\n if ans*0.08 == n and ans*0.1==a:\n flag = 1\n break\n ans += 1\nelse:\n ans = int(n/0.08)\n while ans <= a/0.1:\n if ans*0.1 == a and... | ['Wrong Answer', 'Accepted'] | ['s276460458', 's842095720'] | [3064.0, 3064.0] | [41.0, 18.0] | [422, 236] |
p02755 | u246372582 | 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\nif 10*B == 25*A/2 :\n print(10*B)\nelse :\n print(-1)\n', 'A,B=map(int,input().split())\nN<10000\nN*8/100==A\nN*10/100==B\nprint(N)', 'A,B = map(float,input().split())\n\nif 10*B == 25*A/2 :\n print(10*B)\nelse :\n print(-1)\n', 'A,B=map(int,input().split())\nfor i in ran... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s026387103', 's372744759', 's377992774', 's941213272', 's079590914'] | [2940.0, 3064.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0, 20.0, 20.0] | [89, 68, 91, 124, 128] |
p02755 | u247830763 | 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())\nc=[]\nd=[]\nif a % 2 == 0:\n s = int(100*a/8)\n t = int(100*(a+1)/8) + 1\nelse:\n s = int(100*a/8) + 1\n t = int(100*(a+1)/8) \nu = int(100*b/10) \nv = int(100*(b+1)/10) \nfor i in range(s,t):\n c.append(i)\nfor j in range(u,v):\n d.append(j)\nprint(c)\nprint(d)\nc_d = ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s517747237', 's802905664', 's189403281'] | [3064.0, 3064.0, 3064.0] | [17.0, 17.0, 18.0] | [375, 367, 349] |
p02755 | u250554058 | 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 cul_even(x):\n return x // 2 * 25\ndef cul_odd(x):\n return x // 2 * 25 + 13\ndef test(a, b, func):\n if(b == func(a)//10):\n print(func(a))\n elif(b == (func(a)//10 + 1)):\n print((func(a)+12)//10*10)\n else:\n print(-1)\n\ndef main():\n a,b = map(int,input().split())\n if(a % 2 == 0):\... | ['Runtime Error', 'Accepted'] | ['s548838758', 's360962472'] | [2940.0, 3064.0] | [18.0, 18.0] | [400, 408] |
p02755 | u252964975 | 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())\na_min = math.ceil(a/0.08)\na_max = math.ceil((a+1)/0.08)-1\nb_min = math.ceil(b/0.1)\nb_max = math.ceil((b+1)/0.1)-1\n\nif max([a_min,b_min]) >= min([a_max,b_max]):\n print(-1)\nelse:\n print(min([a_min,b_min]))', 'import math\na,b=map(int, input().split())\na_min = math.... | ['Wrong Answer', 'Accepted'] | ['s567366237', 's174205688'] | [3064.0, 3064.0] | [18.0, 18.0] | [247, 248] |
p02755 | u256314031 | 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\ntax_eight, tax_ten = map(int, input().split())\nmin_eight_price = math.ceil(tax_eight / 0.08)\nmax_eight_price = math.floor((tax_eight + 1) / 0.08 - 1)\nmin_ten_price = tax_ten / 0.1 \nmax_ten_price = (tax_ten + 1) / 0.1 - 1\nprint(min_eight_price, max_eight_price)\nprint(min_ten_price, max_ten_price)\nm... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s545234710', 's630965646', 's637675637'] | [3060.0, 3064.0, 3064.0] | [18.0, 17.0, 18.0] | [477, 352, 400] |
p02755 | u261082314 | 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... | ['#output <= 1000\n\nnums = [int(e) for e in input().split()]\nfor i in range(1001):\n if ((((i * 8) // 100) == nums[0]) & (((i * 10) // 100) == nums[1])):\n print(i)\n else:\n print(-1)', '#output <= 1000\n\nnums = [int(e) for e in input().split()]\nfor i in range(1,1001):\n if ((((i * 8) // 100) == nums[0]) ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s087961681', 's106229487', 's442376905', 's457597167', 's506706760', 's470753620'] | [3188.0, 3188.0, 3188.0, 2940.0, 3188.0, 3060.0] | [20.0, 19.0, 19.0, 18.0, 19.0, 17.0] | [185, 187, 197, 225, 183, 226] |
p02755 | u262525101 | 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().split()))\n\ndef problem_koganemaru(A,B): \n for price in range(10000):\n if math.ceil(price*0.08) == A and math.ceil(price*0.1) == B:\n return price\n return -1\n\nprint(problem_koganemru(A,B))', 'A ,B = list(map(int,input().split()))\ndef problem_koganemaru(A,B): ... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s378003244', 's471576797', 's826720426', 's008313568'] | [3060.0, 3056.0, 3060.0, 3060.0] | [17.0, 17.0, 21.0, 18.0] | [237, 337, 240, 370] |
p02755 | u269724549 | 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(10000000):\n if(i//12.5==a and i//10==b):\n print(i)\n else:\n print("-1")', 'a,b=map(int,input().split())\nfor i in range(10**6):\n if(i//12.5==a and i//10==b):print(i);exit()\n else:\n print("-1")\n', 'a,b=map(int,input().split())\nfor i in range(100):\n if... | ['Time Limit Exceeded', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s002925854', 's207197947', 's910486992', 's496784531'] | [10440.0, 6472.0, 3060.0, 2940.0] | [2104.0, 1059.0, 18.0, 18.0] | [122, 122, 118, 127] |
p02755 | u271752821 | 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,1009):\n if int(i*0.08) == a and int(i*0.1) == b:\n print(int(i))\nprint("-1")', 'a, b = map(int, input().split())\nfor i in range(909,1009):\n if int(i*0.08) == a and int(i*0.1) == b:\n print(int(i))\nprint("-1")', 'a, b = map(int, input().split(... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s066965435', 's128002517', 's319944762', 's913804279'] | [3064.0, 2940.0, 3064.0, 2940.0] | [18.0, 18.0, 18.0, 18.0] | [135, 137, 149, 150] |
p02755 | u277353449 | 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())\nprice=10*b\nc=[] \nwhile(price<=10*b+10):\n if int(price*0.08)==a:\n c.append(a)\n else:\n price=price+1\nprint(min(c))', 'a,b=map(int,input().split())\nprice=10*b\nc=[] \nwhile(price<=10*b+10):\n if int(price*0.08)==a:\n c.append(a)\n else:\n price=price+1\nif c=[]:\n ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s292806234', 's372103258', 's594398975', 's552438789'] | [47896.0, 2940.0, 2940.0, 3064.0] | [2106.0, 17.0, 17.0, 17.0] | [150, 179, 197, 201] |
p02755 | u283220417 | 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())\nans = -1\nn = 0\nwhile True:\n if n > B: break\n if A == (10 * B + n) * 8 // 100:\n ans = 10 * B + n\n n += 1\n\nprint(ans)', 'import math\nA,B = map(int, input().split())\nans = -1\n\nfor p in range(1,1251):\n if math.floor(p * 0.08) == A and math.floor(p * 0.1) == B:\n ans... | ['Wrong Answer', 'Accepted'] | ['s318600269', 's595752503'] | [2940.0, 3060.0] | [23.0, 18.0] | [153, 171] |
p02755 | u283605799 | 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... | ["# -*- coding: utf-8 -*-\n\nimport sys\n\ndef check(a, b, x):\n if int(x * 0.08) != a or int(x * 0.1) != b:\n return -1\n return x\n\ndef prob_c(a, b):\n yasu = a * 100 / 8\n yasutaka = (a+0.99) * 100 / 8\n taka = b * 100 / 10\n takataka = (b+0.99) * 100 / 10\n ans = check(a, b, max(yasu, t... | ['Runtime Error', 'Accepted'] | ['s212874961', 's981267129'] | [3064.0, 3060.0] | [17.0, 20.0] | [416, 365] |
p02755 | u284363684 | 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... | ['# input\nA, B = map(int, input().split())\n\n\n\n# if int(kimeuchi * 0.08) == A and int(kimeuchi * 0.1) == B:\n#\n# print(kimeuchi)\n# else:\n# print(-1)\n\nans = -1\nfor n in range(100 * 0.1, -1 , -1):\n if int(n * 0.08) == A and int(n * 0.1) == B:\n ans = n\n\nprint(ans)', '# input\nA, B = map(int... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s112308915', 's129724418', 's907536397', 's506312133'] | [3060.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [329, 184, 170, 165] |
p02755 | u284927738 | 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 x in range(1251):\n \n if (int(x * 0.08) == A) and (int(x * 0.1) == B):\n print(i)\n else:\n print("-1")\n', 'A, B = map(int, input().split())\n\nfor x in range(1251):\n \n if (int(x * 0.08) == A) and (int(x * 0.1) == B):\n print(x)\n ... | ['Runtime Error', 'Accepted'] | ['s765853350', 's383504067'] | [3316.0, 3064.0] | [18.0, 19.0] | [161, 158] |
p02755 | u285595848 | 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(10000):\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(10000):\n if int(i * 0.08) == a and int(i * 0.1) == b:\n print(i)\n exit()\nprint(-1)'] | ['Runtime Error', 'Accepted'] | ['s294240679', 's367936346'] | [2940.0, 2940.0] | [18.0, 20.0] | [136, 136] |
p02755 | u289102924 | 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 // 0.08\n\nans = -1\nfor i in range(13):\n if (int((x+ i) * 0.1)) == b:\n ans = int(x + i)\n break\n\nprint(ans)', 'from math import floor\na, b = map(int, input().split())\nans = -1\n\nfor i in range(1010):\n a_test = floor(i * 0.08)\n b_test = floor(i... | ['Wrong Answer', 'Accepted'] | ['s558775523', 's918933249'] | [3064.0, 3060.0] | [17.0, 18.0] | [161, 222] |
p02755 | u290886932 | 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... | ['ret = -1\n\nfor i in range(1,1010):\n if int(i * 0.08) == A and int(i * 0.1) == B:\n ret = i\n break\nprint(ret)', 'A, B = map(int, input().split())\nret = -1\n\nfor i in range(1,1010):\n if int(i * 0.08) == A and int(i * 0.1) == B:\n ret = i\n break\nprint(ret)'] | ['Runtime Error', 'Accepted'] | ['s402358405', 's361579418'] | [2940.0, 2940.0] | [18.0, 17.0] | [113, 146] |
p02755 | u293436958 | 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())\n\na=int(A/0.08 + 0.5)\nb=int(B/0.1 + 0.5)\nout =0\nprint(a,b)\nif a>=b:\n if math.floor(a*0.1) != B:\n out = -1\n else:\n out = int(a)\nelif a<b:\n if math.floor(b*0.08) != A:\n out = -1\n else:\n out = int(b)\nprint(out)', 'i... | ['Wrong Answer', 'Accepted'] | ['s294597560', 's201524629'] | [3064.0, 3064.0] | [17.0, 17.0] | [296, 298] |
p02755 | u294376483 | 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()))\n\nans = 0\nfor i in range(1250) :\n if int(i * 0.08) == A and int(i * 0.1) == B :\n ans = i\n break\n\nif ans == 0 :\n ans = -1\n\nprint(ans)\nprint(A)\n', '[A, B] = list(map(int, input().split()))\n\nans = 0\nfor i in range(1250) :\n if int(i * 0.08) =... | ['Wrong Answer', 'Accepted'] | ['s589792973', 's387986546'] | [2940.0, 3060.0] | [18.0, 17.0] | [202, 192] |
p02755 | u294385082 | 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(1,10**10):\n if (int(i*0.08)/int(i*0.1)) == a/b:\n print(i)\n exit()\n ', 'a,b = map(int,input().split())\n \nfor i in range(10,10**10):\n if (int(i*0.08)/int(i*0.1)) == a/b:\n print(i)\n exit()\n \n ', 'a,b = map(int,input().split())\n\nfor i i... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s058407167', 's416410290', 's468725034', 's764293180', 's824436238', 's883126285', 's352863428'] | [2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0, 2940.0] | [17.0, 2104.0, 17.0, 18.0, 679.0, 2104.0, 18.0] | [125, 131, 117, 118, 130, 156, 195] |
p02755 | u297089927 | 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(1300):\n if int(i*0.08) == a and int(i*0.10) == b:\n print(i)\n x=1\n if x == 0 and i == 1299:\n print("-1")\n', 'a,b=map(int,input().split())\nna=int(a*12.5)\nnb=b*10\nx=0\nfor i in range(8):\n nai=na+i\n for j in range(10):\n nbj=nb+j\n if nai == ... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s396393842', 's702242900', 's632566871'] | [3064.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [163, 244, 174] |
p02755 | u301302814 | 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... | ['# coding: utf-8\n\n\ndef main():\n A, B = map(int, input().split())\n for i in range(10001):\n if i * 8 // 100 == A and i / 10 == B:\n print(i)\n break\n\nif __name__ == "__main__":\n main()\n', '# coding: utf-8\n\n\ndef main():\n A, B = map(int, input().split())\n ans = -1... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s062828917', 's380033849', 's916068979', 's207063481'] | [9180.0, 9184.0, 9168.0, 9108.0] | [28.0, 28.0, 31.0, 28.0] | [218, 246, 217, 247] |
p02755 | u301624971 | 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 fractions\nimport sys\nA,B=map(int,input().split())\n\nif (fractions.gcd(A,B)==1):\n print(-1)\n sys.exit()\nfor i in range(10**5):\n ans=int(i*0.08)+int(i*0.1)\n if((A+B)==ans):\n print(i)\n break', 'import fractions\nimport sys\nA,B=map(int,input().split())\n\nif (fractions.gcd(A,B)... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s602946586', 's694519415', 's878549136'] | [5304.0, 5432.0, 3064.0] | [97.0, 2104.0, 19.0] | [219, 214, 572] |
p02755 | u309423187 | 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 if i * 0.08 == a and i * 0.1 == b:\n print(i)\n exit(0)\n \nprint('-1')\n \n", "a, b = map(int, input().split())\n\nfor i in range(10000):\n if i == a * 0.08 and i == b * 0.1:\n print(i)\n exit(0)\n else:\n print('-1')\n exit(0... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s077337063', 's169158214', 's250416373', 's261548868', 's356241070', 's455113167', 's562524702', 's645923989', 's738002810', 's872538811', 's022037729'] | [2940.0, 2940.0, 3188.0, 2940.0, 2940.0, 2940.0, 3572.0, 2940.0, 2940.0, 2940.0, 2940.0] | [20.0, 17.0, 18.0, 17.0, 20.0, 19.0, 27.0, 18.0, 20.0, 19.0, 18.0] | [142, 162, 174, 161, 150, 150, 125, 155, 148, 145, 152] |
p02755 | u311379832 | 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())\ntmpa = math.floor(A / 0.08)\ntmpb = math.floor(B / 0.1)\nalst = []\nblst = []\n\nindexa = 0\nwhile True:\n tmp = math.floor((tmpa + indexa) * 0.08)\n if tmp == A:\n alst.append(tmpa + indexa)\n indexa += 1\n elif tmp > A:\n break\n else:\... | ['Time Limit Exceeded', 'Accepted'] | ['s194760981', 's839446712'] | [3064.0, 3064.0] | [2104.0, 19.0] | [642, 641] |
p02755 | u311928787 | 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\nif Amin != int(Amin):\n Amin = int(Amin)+1\nelse Amin = int(Amin)\n\nBmin = B/0.1\nif Bmin != int(Bmin):\n Bmin = int(Bmin)+1\nelse Bmin = int(Bmin)\n\nrangea = set(range(Amin,int((A+1)/0.08),1))\nrangeb = set(range(Bmin,int((B+1)/0.10),1))\n\nintersection = rangea ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s069027182', 's469415814', 's071254151'] | [2940.0, 3064.0, 3064.0] | [18.0, 17.0, 17.0] | [382, 338, 388] |
p02755 | u312078744 | 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())\npre = A / (0.08)\nfir = math.floor(pre) - 1\nsec = math.floor(pre)\ntir = math.floor(pre) + 1\n\nlist = [fir, sec, tir]\nval = 0\n\nfor k, x in enumerate(list):\n f, i = math.modf(x * 0.08)\n if (i == A):\n F, I = math.modf(x * 0.1)\n if (I == B):\n... | ['Wrong Answer', 'Accepted'] | ['s616682892', 's046442232'] | [3064.0, 3064.0] | [19.0, 17.0] | [370, 271] |
p02755 | u316733945 | 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 int(i*0.08) == a and int(i*0.1) == b:\n num = i\n break\n\n elif i*0.08 < i*0.1:\n num =-1\n break\n\nprint(num)\n', 'a, b = map(int, input().split())\nnum = -1\n\nif a <= b:\n for i in range(1000000):\n if int(... | ['Wrong Answer', 'Accepted'] | ['s677623589', 's887182290'] | [2940.0, 3060.0] | [17.0, 18.0] | [199, 248] |
p02755 | u318233626 | 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())\nansA = A / 0.08\nansB = B / 0.1\nans = 0\n\n\n\nif ansA > ansB:\n ans = ansA\nelse:\n ans = ansB\ndef check_ans(ans):\n ra = int(ans * 0.08)\n rb = int(ans * 0.1)\n wa = int((ans - 1) * 0.08)\n wb = int((ans - 1) * 0.1)\n\n """\n print(ra)\n print(rb)\n ... | ['Wrong Answer', 'Accepted'] | ['s709813238', 's535768950'] | [3064.0, 2940.0] | [17.0, 18.0] | [581, 231] |
p02755 | u318740143 | 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())\nmina= 100\nminb=100\na = set()\nb = set()\nC = A/0.08\nD= B/0.08\nE = (A+1)/0.08\nF= (B+1)/0.08\nif C.is_integer() ==False:\n C= C//0.08 +1\n\nif D.is_integer() ==False:\n D= D//0.08\n\nif E.is_integer() ==False:\n E= E//0.08 +1\n\nif F.is_integer() ==False:\n F= F//0.08\n\nfor i i... | ['Runtime Error', 'Accepted'] | ['s597431050', 's669112384'] | [3064.0, 3192.0] | [19.0, 20.0] | [435, 470] |
p02755 | u321035578 | 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(1,2000):\n if a // 1.08 == i and b // 1.1 == i:\n print(i)\n exit()\nprint(-1)', 'import math\na,b = map(int,input().split())\n\nfor i in range(1,2000):\n tax8 = math.floor(i*0.08)\n tax1 = math.floor(i*0.1)\n if a == tax8 and b == tax1:\n print(... | ['Wrong Answer', 'Accepted'] | ['s448212355', 's423850894'] | [2940.0, 3060.0] | [19.0, 20.0] | [128, 201] |
p02755 | u322229918 | 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\nA, B = map(int,input().split())\namin, amax = A / 0.08, (A + 1) / 0.08\nbmin, bmax = B / 0.10, (B + 1) / 0.10\n\nif amax <= bmin or bmax <= amin:\n print(-1)\n sys.exit()\n\nans = np.ceil(max(amin, bmin)).astype(int)\n\nif ans >= amax or ans >= bmax:\n print(-1)\nelse:\n print(ans)', 'import s... | ['Runtime Error', 'Accepted'] | ['s556736616', 's031586179'] | [3064.0, 21892.0] | [18.0, 327.0] | [326, 345] |
p02755 | u324865921 | 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... | ['# -*- coding: utf-8 -*-\n\nA, B = map(int, input().split())\n\na_koho = int(A/0.08)\nb_koho = int(A/0.1)\n\nprint(a_koho,b_koho)\n\nif a_koho == b_koho:\n \n exit()\n\nstart = min(a_koho,b_koho)\nend = max(a_koho,b_koho)\n\nfor i in range(start,end+1):\n\n\n a = int(i*0.08)\n b = int(i*0.1)\n\n # print... | ['Wrong Answer', 'Accepted'] | ['s958907817', 's944648297'] | [3064.0, 3064.0] | [17.0, 20.0] | [390, 428] |
p02755 | u329785342 | 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\nstart_plice = math.ceil(A / 0.08) if math.ceil(A / 0.08) < math.ceil(B / 0.1) else math.ceil(B / 0.1)\n\nwhile True:\n if math.floor(start_plice * 0.08) > A:\n print(-1)\n break\n \n if math.floor(start_plice * 0.1) >= B:\n print(start_plice)\n break\n... | ['Wrong Answer', 'Accepted'] | ['s164478082', 's805294088'] | [3060.0, 3064.0] | [18.0, 17.0] | [325, 555] |
p02755 | u330314953 | 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\na_1 = math.ceil(a/0.08)\na_2 = math.ceil((a+1)/0.08)\nb_1 = b * 10\nb_2 = (b+1) * 10\n\nif a_1 >=b_2 or b_1 >= a_2:\n print(-1)\nelse:\n print(min(a_1,b_1))', 'import math\n\na,b = map(int,input().split())\n\na_1 = math.ceil(a/0.08)\na_2 = math.ceil((a+1)/0.08)\n... | ['Wrong Answer', 'Accepted'] | ['s078634022', 's157273135'] | [3064.0, 3188.0] | [18.0, 18.0] | [199, 199] |
p02755 | u331997680 | 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())\nC = A//0.08\nif(C*0.1 = B):\n print(C)\nelse:\n print(-1)', 'A, B = map(int, input().split())\nA1 = A/0.08\nA2 = (A+1)/0.08\nB1 = B/0.1\nB2 = (B+1)/0.1\nC = 0\nfor i in range(1001):\n if A1 <= i < A2 and B1 <= i < B2:\n print(i)\n C = 1\n break\nif C == 0:\n print(-1)\n'... | ['Runtime Error', 'Accepted'] | ['s443199364', 's167001448'] | [2940.0, 3060.0] | [17.0, 17.0] | [88, 207] |
p02755 | u333700164 | 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_s=a/1.08\na_t=(a+1)/1.08\nb_s=b/1.1\nb_t=(b+1)/1.1\n\na0=int(a_s)\na1=int(a_t)\nb0=int(b_s)\nb1=int(b_t)\n\n\nif (a_s-a0)>0:\n a0+=1\nif (a_t-a1)<=0:\n a1-=1\nif (b_s-b0)>0:\n b0+=1\nif (b_t-b1)<=0:\n b1-=1\n\nlista=[i for i in range(a0,a1+1)]\nlistb=[i for i in range(b0,b1+1)]\n\nansl=[]\nfor j in range(len(li... | ['Runtime Error', 'Accepted'] | ['s637161670', 's198963209'] | [9176.0, 9228.0] | [28.0, 27.0] | [413, 442] |
p02755 | u334617936 | 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 args = input().rstrip().split(\' \')\n A, B = int(args[0]), int(args[1])\n p_A = [int(A * 12.5)+1, int((A+1.) * 12.5)]\n p_B = [int(B * 10.)+1, int((B+1.) * 10.)]\n \n if(p_A[1] <= p_B[0] or p_B[1] <= p_A[0]):\n print(\'-1\')\n else:\n print(int(max(p_A[0], p_B[0])))\n... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s459178526', 's965995347', 's311658279'] | [3064.0, 3064.0, 3064.0] | [17.0, 17.0, 17.0] | [346, 436, 768] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.