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 | u729133443 | 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());l=b*10;print(l*(~a/.08<-l>~b*10)or-1)', 'a,b=map(int,input().split());l=max(a*25+1>>1,b*10);print(l*(a/.08>=l<=b*10)or-1)', 'a,b=map(int,input().split());print([i for i in range(10**6)if a==i//12.5and b==i//10]+[-1][0])', 'a,b=map(int,input().split());l=max(a*25+1>>1,b*10);print(l*(~a/.08... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s436804565', 's633193956', 's944160440', 's746450581'] | [3064.0, 2940.0, 3060.0, 2940.0] | [18.0, 17.0, 391.0, 17.0] | [66, 80, 94, 81] |
p02755 | u729939940 | 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_MAX_PRICE = 1001\nfor n in range(1, _MAX_PRICE):\n if int(n * 0.08) == A and int(n * 0.1) == B:\n print(n)\n exit()\nprint(-1)c', 'A, B = map(int, input().split())\nfor n in range(1, 1001):\n if int(n * 0.08) == A and int(n * 0.1) == B:\n print(n)\n exit()\nprint(-1)'] | ['Runtime Error', 'Accepted'] | ['s760219617', 's255238145'] | [2940.0, 2940.0] | [17.0, 18.0] | [163, 138] |
p02755 | u730107446 | 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\nemin=math.ceil(a/0.08)\nemax=math.ceil((a+1)/0.08)-1\ntmin=math.ceil(b/0.1)\ntmax=math.ceil((b+1)/0.1)-1\n\nprint(emin)\nprint(emax)\nprint(tmin)\nprint(tmax)\n\nif tmin<=emin<=tmax:\n print(emin)\nelif emin<=tmin<=emax:\n print(tmin)\nelse:\n print(-1)', 'n,a,b... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s288681921', 's561245331', 's861353519'] | [3064.0, 3064.0, 3060.0] | [18.0, 18.0, 18.0] | [290, 126, 241] |
p02755 | u731368968 | 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*=100\nB*=100\nfor i in range(2000):\n t*=100\n if A==t*8 and B==t*10:\n print(i)\n break\nelse:\n print(-1)\n', 'A,B=map(int,input().split())\nA*=100\nB+=100\nfor i in range(2000):\n t*=100\n if A==t*8//100 and B==t//10:\n print(i)\n exit()\nprint(-1)', 'A, B = map(i... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s470652878', 's513204275', 's653939986', 's656407278', 's998311418', 's475376594'] | [2940.0, 3060.0, 2940.0, 2940.0, 3060.0, 2940.0] | [19.0, 17.0, 24.0, 24.0, 19.0, 18.0] | [142, 138, 148, 141, 133, 129] |
p02755 | u732870425 | 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 = max(A*8//100, B*10//100)\ny = min((A+1)*8//100, (B+1)*10//100)\n\nif x <= y:\n ans = x\nelse:\n ans = -1\n\nprint(ans)', 'A, B = map(int, input().split())\n\nans = -1\nif A // 0.08 == B // 0.1:\n ans = A // 0.08\n\nprint(ans)', 'A, B = map(int, input().split())\n\nx = ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s088524701', 's760350076', 's749597156'] | [3060.0, 3444.0, 3060.0] | [17.0, 23.0, 17.0] | [154, 100, 155] |
p02755 | u733581231 | 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())\nfor i in range(1 , 1e5):\n a2 = math.floor(i*0.08)\n b2 = math.floor(i*0.1)\n if a2 == a and b2 == b:\n exit(print(i))\n print(-1)', 'import math\na,b = map(int, input().split())\nfor i in range(1 , 100000):\n a2 = math.floor(i*0.08)\n b2 = math.f... | ['Runtime Error', 'Accepted'] | ['s174184504', 's842552898'] | [3060.0, 3060.0] | [17.0, 89.0] | [188, 187] |
p02755 | u736470924 | 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())\nc1 = a / 0.08\nc2 = b / 0.1\nkouho = []\nfor i in range(10):\n int(c2 + i * 0.08) == a\n print(c2 + i)\n break\nprint(-1)\n', 'import math\n\na, b = map(int, input().split())\nc1 = a / 0.08\nc2 = b / 0.1\nkouho = []\nfor i in range(10):\n if math.floor((c2 + i) * 0.08) == a... | ['Wrong Answer', 'Accepted'] | ['s119147288', 's155117297'] | [2940.0, 3064.0] | [18.0, 17.0] | [157, 188] |
p02755 | u736524428 | 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_under = A * 25 // 2\nA_top = (A + 1) * 25 // 2 - 1\nB_under = B * 10\nB_top = B * 10 - 1\n\nif B_under <= A_under <= B_top:\n print(A_under)\nelif A_under <= B_under <= A_top:\n print(B_under)\nelse:\n print(-1)', 'A, B = map(int, input().split())\nA_under = (A * 25 + 1) /... | ['Wrong Answer', 'Accepted'] | ['s365522433', 's944634425'] | [3060.0, 3064.0] | [17.0, 21.0] | [245, 251] |
p02755 | u736641785 | 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\nUE_8 = (A+1)/0.08\nSHITA_8 = A/0.08\nUE_10 = (B+1)/0.10\nSHITA_10 = B/0.10\n\nif UE_8 < SHITA_10 or UE_10 < SHITA_8:\n print(-1)\nelse:\n i = math.ceil(SHITA_8)\n j = math.floor(UE_8)\n while i <= j:\n if i < UE_10 and i >= SHITA_10:\n prin... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s306509706', 's531481296', 's560394343', 's610239857', 's052618540'] | [3064.0, 3064.0, 3064.0, 3064.0, 3064.0] | [18.0, 18.0, 17.0, 17.0, 17.0] | [320, 337, 360, 331, 407] |
p02755 | u742899538 | 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\nbegin = int(min(A // 0.08, B // 0.10))\nend = int(max((A + 1) // 0.08, (B + 1) // 0.10))\n\nfor n in range(begin, end+1):\n if int(n * 0.08) == A and int(n * 0.1) == B:\n print(n)\n break\n else:\n print(-1)\n', 'A, B = list(map(int, input().split()))\n\nresult... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s452037710', 's552629499', 's810191968', 's304350374'] | [2940.0, 3060.0, 2940.0, 3064.0] | [17.0, 18.0, 17.0, 18.0] | [255, 547, 671, 258] |
p02755 | u743272507 | 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(101):\n if i * 108 // 100 == a and i * 110 // 100 == b:\n print(i)\n break\nelse:\n print(-1)', 'a,b = map(int,input().split())\nfor i in range(10100):\n if i * 8 // 100 == a and i * 10 // 100 == b:\n print(i)\n break\nelse:\n print(-1)\n'] | ['Wrong Answer', 'Accepted'] | ['s541137388', 's192662003'] | [3060.0, 3064.0] | [18.0, 19.0] | [142, 142] |
p02755 | u744695362 | 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 c = i\n break\nc = -1 \nprint(c) ', 'a,b = map(int,input().split()) \nc = -1\nfor i in range(10000):\n if int(i*0.08) == a and int(i*0.1) == b :\n c = i\n break\nprint(c)... | ['Wrong Answer', 'Accepted'] | ['s025748651', 's773038776'] | [2940.0, 2940.0] | [20.0, 19.0] | [156, 148] |
p02755 | u747391638 | 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 = []\nq = []\n\nfor i in range(((a/8)*100)//1, (((a+1)/8)*100)//1+1):\n if i >= (a/8)*100 and i < ((a+1)/8)*100:\n p.append(i)\n \nfor i in range((a*10), (a+1)*10):\n q.append(i)\n\npq = list(set(p) & set(q))\nif pq == []:\n print("-1")\nelse:\n print(min(pq))', 'a,b ... | ['Runtime Error', 'Accepted'] | ['s793899760', 's528767685'] | [3064.0, 3064.0] | [18.0, 18.0] | [295, 305] |
p02755 | u747602774 | 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... | ['print(-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)\n'] | ['Wrong Answer', 'Accepted'] | ['s778435834', 's175081230'] | [2940.0, 3064.0] | [18.0, 20.0] | [9, 141] |
p02755 | u747703115 | 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)\nb_ = int(b/0.10)\nprint(a_ if a_==b_ else -1)', 'def rounder(x):\n flt = x - int(x)\n if flt>=0.5:\n return int(x)+1\n else:\n return int(x)\n\ndef main():\n a, b = map(int, input().split())\n A = list(range(rounder(a/0.08), rounder((a+1... | ['Wrong Answer', 'Accepted'] | ['s480774919', 's265071560'] | [2940.0, 3064.0] | [19.0, 17.0] | [94, 397] |
p02755 | u749770850 | 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(1,101):\n if math.floor(i * 0.08) == a:\n for j in range(1,101):\n if math.floor(j * 0.1) == b and a <= b:\n print(min(i,j))\n exit()\n\nprint(-1)\n', 'import math\na, b = map(int, input().split())\n\nfo... | ['Wrong Answer', 'Accepted'] | ['s503775772', 's903406214'] | [2940.0, 2940.0] | [19.0, 20.0] | [252, 175] |
p02755 | u751077930 | 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())\nTF = True\nA,B = [],[]\nfor i in range(10):\n ansA = math.ceil((a+0.1*i)*12.5)\n ansB = math.ceil((b+0.1*i)*10)\n A.append(ansA)\n B.append(ansB)\n if ansA in B:\n print(ansA)\n TF = False\n break\n elif ansB in A:\n print(ansB... | ['Wrong Answer', 'Accepted'] | ['s080283714', 's406894392'] | [3064.0, 2940.0] | [17.0, 18.0] | [378, 164] |
p02755 | u751539777 | 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(1001):\n if math.floor(i * 0.08) == a and math.floor(i * 0.1) == b:\n print(i)\n else:\n print(-1)', 'import math\na, b = map(int, input().split())\n\nfor i in range(1001):\n if math.floor(i * 0.08) == a and math.floor(i * 0.1) == ... | ['Wrong Answer', 'Accepted'] | ['s676474045', 's737307823'] | [3188.0, 2940.0] | [18.0, 18.0] | [175, 174] |
p02755 | u753542444 | 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... | ['tax8, tax10 = map(int,input().split())\nimport math\n\ntax10_list = []\nlist = []\ncount = 0\n\nfor i in range(10):\n tax10_list.append(math.floor(tax10*10+i))\n\nfor x in range(tax10_list[0],tax10_list[9]):\n if math.floor(x * 0.08) == tax8:\n print(math.floor(x * 0.08))\n\n break\n else:\n ... | ['Wrong Answer', 'Accepted'] | ['s421132847', 's576546205'] | [3060.0, 3060.0] | [17.0, 18.0] | [364, 345] |
p02755 | u756030237 | 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\nper8_set = set(range(math.floor(A / 0.08), math.floor(A / 0.08)+13))\nper10_set = set(range(math.floor(B / 0.1), math.floor(B / 0.1)+10))\n\nprint(per8_set)\nprint(per10_set)\n\nx = per8_set & per10_set\nprint(x)\n\nif len(x) == 0:\n print(-1)\nelse:\n print(min(... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s571156407', 's864183401', 's236715127'] | [3064.0, 2940.0, 3188.0] | [17.0, 18.0, 21.0] | [367, 161, 409] |
p02755 | u757274384 | 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 = int(math.floor(a * (100/8)))\nB = int(math.floor(b * (100/10)))\nwhile True:\n if int(math.floor(A * (8/100))) == a:\n break\n else:\n A += 1\n \nwhile True:\n if int(math.floor(B * (10/100))) == b:\n break\n else:\n B += 1\n \nif A == B:\n print... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s113656454', 's758738593', 's421666692'] | [3064.0, 3064.0, 3064.0] | [17.0, 17.0, 17.0] | [323, 410, 493] |
p02755 | u757777793 | 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 (4/a)==(5/b):\n print(int(a/0.08))\nelse:\n print(-1)', 'a, b = map(int,input().split())\nans = -1\nfor i in range(1500):\n if (a==int(i*0.08)) and (b==int(i*0.1)):\n ans = i\n break\nprint(ans)\n'] | ['Wrong Answer', 'Accepted'] | ['s681911315', 's292973332'] | [3064.0, 2940.0] | [18.0, 17.0] | [87, 139] |
p02755 | u759518460 | 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_8, tax_10 = map(int, input().split())\n\nk = int(tax_8 / 0.08)\nkk = int((tax_8+1) / 0.08)\nkkk = int(tax_10 / 0.1)\nkkkk = int((tax_10+1) / 0.1)\nprint(k, kk, kkk, kkkk)\n\nfor i in range(min(k, kkk), max(kk, kkkk)):\n if int(i * 0.08) is tax_8 and int(i * 0.1) is tax_10:\n print(i)\n exit()\npr... | ['Wrong Answer', 'Accepted'] | ['s651405346', 's567041882'] | [3188.0, 3064.0] | [19.0, 18.0] | [313, 289] |
p02755 | u760391419 | 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\nminA = A / 0.08\nmaxA = (A+1) / 0.08\nminB = B / 0.1\nmaxB = (B+1) / 0.1\n\nprint(minA, maxA, minB, maxB)\n\nif minB <= minA and minA < maxB: print(int(minA))\nelif minA <= minB and minB < maxA: print(int(minB))\nelse: print("-1")', 'A, B = map(int, input().split())\n\nminA = A / 0... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s113336536', 's759337510', 's908971032', 's595684027'] | [3064.0, 3064.0, 3064.0, 3060.0] | [19.0, 19.0, 45.0, 19.0] | [255, 323, 361, 292] |
p02755 | u760771686 | 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 func():\n b = B*10\n for i in range(b,2*b):\n if math.floor(i*0.08) == A and math.floor(i*0.1) == B:\n return i\n return -1\n \nprint(func())', 'import math\n\nA, B = map(int,input().split()) \n\ndef func():\n b = B*10\n for i in range(b,2*b)... | ['Runtime Error', 'Accepted'] | ['s768023103', 's889271079'] | [3056.0, 3060.0] | [18.0, 19.0] | [202, 215] |
p02755 | u763291354 | 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 = A_B[0]\nB = A_B[1]\n\ncount = 1\nwhile count * 0.08 // 1 != A or count * 0.1 // 1 != B:\n count += 1\n if count // 0.1 > B:\n print(-1)\n exit()\n\nprint(count)\n', 'A_B = list(map(int, input().split()))\nA = A_B[0]\nB = A_B[1]\n\ncount = 1\nwhile count *... | ['Wrong Answer', 'Accepted'] | ['s359853149', 's777116543'] | [3064.0, 2940.0] | [17.0, 18.0] | [213, 216] |
p02755 | u765590009 | 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\nanswer = -1\nfor i in range(1,101):\n print(i)\n if int(i*8//100) == a and int(i*10//100) == b:\n answer = i\n break\n \nprint(answer)', 'a, b = map(int , input().split())\n\nanswer = -1\nfor i in range(1,10100):\n if i * 8 // 100 == a and i * 10 // 100 == b:\n answ... | ['Wrong Answer', 'Accepted'] | ['s775119400', 's706432958'] | [9212.0, 9188.0] | [28.0, 29.0] | [173, 162] |
p02755 | u766393261 | 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())\nA_min=int(A/8*100)+1\nA_max=int((A+1)/8*100)\nans=0\nflag=False\nif (A+1)*100%8==0:\n A_max=int((A+1)*100/8)-1\nfor i in range(A_min,A_max):\n if int(i*0.1)==B:\n ans=i\n flag=True\n break\nif flag:\n print(ans)\nelse:\n print(-1)', 'A,B=map(float,input... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s210050390', 's374556121', 's443152794', 's543026610', 's569602133', 's890415134', 's283641334'] | [3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0, 3064.0] | [18.0, 18.0, 19.0, 17.0, 19.0, 17.0, 17.0] | [280, 280, 312, 347, 280, 315, 310] |
p02755 | u766646838 | 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,M = map(int,input().split())\nn = math.ceil(N/0.08)\nm = int(M/0.1)\nprint(n,m)\nans = 2000\nif int(n*0.1) ==M:\n ans = min(n,ans)\nif int(m*0.08) ==N:\n ans =min(m,ans)\n \nif int(n*0.1)!=M and int(m*0.08)!=N:\n ans = -1\n \nprint(ans)', 'import math\nN,M = map(int,input().split())\nn = math.ceil... | ['Wrong Answer', 'Accepted'] | ['s216286453', 's856417219'] | [9140.0, 9120.0] | [33.0, 30.0] | [242, 231] |
p02755 | u767304716 | 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\neightper = 0.08\ntenper = 0.1\nans = -1\nfor i in range(1,100*(1+tenper)+1):\n if int(i*eightper)==a:\n if int(i*tenper)==b:\n ans=i\n break\nprint(ans)', 'a,b=map(int,input().split())\n\neightper = 0.08\ntenper = 0.1\nans = -1\nfor i in range(1,1000+1):... | ['Runtime Error', 'Accepted'] | ['s720266670', 's260946756'] | [2940.0, 3060.0] | [17.0, 18.0] | [206, 196] |
p02755 | u768256617 | 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\na,b=map(int,input().split())\nla=[]\nlb=[]\nfor i in range(100):\n s=(a+i/100)\n la.append(s)\n \nfor i in range(10):\n s=(b+i/10)\n lb.append(s)\n \n#print(la)\n#print(lb)\nlm=[0]\nfor i in la:\n m=int(floor(100/8*i))\n for j in lb:\n n=int(floor(10*j))\n if m==n:\n lm.appe... | ['Wrong Answer', 'Accepted'] | ['s544335252', 's121328489'] | [3064.0, 9172.0] | [17.0, 28.0] | [377, 154] |
p02755 | u771538568 | 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\na,b=map(int,input().spliit())\na2=math.ceil(a/0.08)\na3=math.floor((a+1)/0.08)\nif a2>a3:\n print("-1")\n sys.exit()\nb2=math.ceil(b/0.1)\nb3=math.floor((b+1)/0.1)\nif b2>b3:\n print("-1")\n sys.exit()\nif b2<a2:\n if a2<(b+1)/0.1:\n print(a2)\n else:\n print("... | ['Runtime Error', 'Accepted'] | ['s360704490', 's075937974'] | [3064.0, 3064.0] | [17.0, 17.0] | [411, 410] |
p02755 | u777241657 | 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())\n \nimport math \n \ni=0\nwhile i<10001:\n i++\n if math.float(i)==a and math.float(i)==b:\n print(i)\n break\nelse:\n print(-1)', 'a,b=(int(x) for x in input().split())\ni=0\nwhile i<10000:\n i+=1\n if i//100*8==a and i//100*10==b:\n print(i)\n break\nelse:\n p... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s035372207', 's117281431', 's434009800', 's562957575', 's663656946', 's706973693', 's804564821', 's965502092', 's635439916'] | [2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 3064.0, 3064.0, 2940.0, 3060.0] | [18.0, 20.0, 17.0, 18.0, 17.0, 19.0, 21.0, 17.0, 22.0] | [164, 142, 154, 140, 131, 124, 132, 155, 174] |
p02755 | u779728630 | 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(1,100):\n a = int(i * 1.08)\n b = int(i * 1.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(1,1300):\n a = int(i * 0.08)\n b = int(i * 0.1)\n if a == A and b == B:\n ... | ['Wrong Answer', 'Accepted'] | ['s441481687', 's489790699'] | [2940.0, 2940.0] | [18.0, 19.0] | [162, 164] |
p02755 | u781928894 | 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... | ['#At coder 2020/3/8 C\nimport math\n\nI = list(map(int, input().split())) \nA=I[0]\nB=I[1]\n\na1=A/0.08\nb1=B/0.1\n\na2=(A+1)/0.08\nb2=(B+1)/0.1\n\naf=math.ceil(a1)\nac=math.ceil(a2)\nbf=math.ceil(b1)\nbc=math.ceil(b2)\n\nif ac<bf or bc<af:\n ans=-1\nelse:\n ans=min(af,bf)\n\nprint(ans)', '#At coder 2020/3/8 C\n... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s753780071', 's780798243', 's572791995'] | [3064.0, 3064.0, 3064.0] | [18.0, 18.0, 17.0] | [269, 270, 290] |
p02755 | u784022244 | 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\n\nB=B//0.10\n\nif A==B:\n print(A)\nelse:\n print("-1")', 'from math import ceil\nA, B=map(int, input().split())\n\nAlist=[i for i in range(ceil(A/0.08),int((A+1)/0.08))]\nBlist=[i for i in range(ceil(B/0.1),int((B+1)/0.1))]\n\nif set(Alist)&set(Blist):\n print(min(set(... | ['Wrong Answer', 'Accepted'] | ['s018483867', 's418440305'] | [2940.0, 3064.0] | [17.0, 17.0] | [93, 246] |
p02755 | u789836448 | 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\n\nread = ys.std.readline\nS = read()\n\na, b = map(int, S.split())\n\nfor i in range(1000+1):\n if A == math.ceil(i * 0.08):\n if B == math.ceil(i * 0.1):\n print(i)\n return\nprint(-1)', 'import sys\nimport math\n\nread = sys.stdin.readline\nS = read()\n\na, b... | ['Runtime Error', 'Accepted'] | ['s819613471', 's329747418'] | [3060.0, 3064.0] | [18.0, 20.0] | [229, 284] |
p02755 | u790012205 | 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())\nM1 = int(A * 100 / 8)\nM2 = int(B * 10)\nif M1 == M2:\n print(M1)\nelse:\n print('-1')", "import sys\nA, B = map(int, input().split())\nAm = -(-A * 100 // 8)\nAM = (A + 1) * 100 // 8\nBm = int(B * 10)\nBM = int((B + 1) * 10)\nfor m in range(Am, AM):\n for mm in range(Bm, BM)... | ['Wrong Answer', 'Accepted'] | ['s906030168', 's014263219'] | [2940.0, 3064.0] | [17.0, 17.0] | [120, 268] |
p02755 | u791977205 | 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... | ['\n\nA, B = map(int,input().split())\n\nsum_A = int(A/0.08)\nsum_B = int(B/0.10)\n\nfor i in range(1010):\n if A == int(i * 0.08) and B == int(i * 0.10):\n print(i)\n else:\n print(-1)', 'A, B = map(int,input().split())\n \nsum_A = int(A/0.08)\nsum_B = int(B/0.10)\n\nflag = True\nfor i in range(101... | ['Wrong Answer', 'Accepted'] | ['s229007855', 's549684472'] | [3188.0, 3060.0] | [19.0, 17.0] | [192, 279] |
p02755 | u798260206 | 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,-1,-1):\n tax1 = int(i*0.08)\n tax2 = int(i*0.1)\n if tax1 = a and tax2 == b:\n print(i)', 'a,b = map(int,input().split())\nans =0\n\nfor i in range(10000,-1,-1):\n tax1 = int(i*0.08)\n tax2 = int(i*0.1)\n if tax1 = a and tax2 == b:\n ans = i\nprint(a... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s316479246', 's457842711', 's074797549'] | [2940.0, 2940.0, 3060.0] | [17.0, 18.0, 23.0] | [143, 160, 166] |
p02755 | u799164835 | 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\n\nA, B = map(int,input().split())\n\nx8min = ceil(A / 0.08) \nx8max = floor((A + 1) / 0.08) \nx10min = ceil(B / 0.1) \nx10max = floor((B + 1) / 0.1) \n\n#print(str(x8min))\n#print(str(x8max))\n#print(str(x10min))\n#print(str(x10max))\n\nif (x8min <= x10max) and (x8max >= x10min) and (x8m... | ['Wrong Answer', 'Accepted'] | ['s048928573', 's187043111'] | [3188.0, 3064.0] | [18.0, 20.0] | [505, 202] |
p02755 | u800720322 | 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 = [i for i in range(int((A-1)*100/8 ), int((A+1)*100/8 ))]\nb = [i for i in range(int((B-1)*100/10), int((B+1)*100/10))]\n\na = [i for i in a if int(i*0.08) == A]\nb = [i for i in b if int(i*0.10) == B]\n\nans = list(set(a) & set(b))\nif ans and min(ans) > 0:\n print(min(ans))\nelse:\n print(-1)\n', 'A, B = m... | ['Runtime Error', 'Accepted'] | ['s412415067', 's151549797'] | [9144.0, 9192.0] | [29.0, 30.0] | [295, 329] |
p02755 | u806403461 | 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)\nans = -1\nfor x in range(10001):\n if x*0.08 == A and x*0.1 == B:\n ans = x\n break\n\nprint(ans)\n', 'A, B = map(int, input().split())\nans = -1\nfor x in range(1010):\n if int(x*0.08) == A and int(x*0.1) == B:\n ans = x\n break\n\npri... | ['Wrong Answer', 'Accepted'] | ['s132566392', 's338222541'] | [2940.0, 2940.0] | [20.0, 17.0] | [154, 151] |
p02755 | u810092294 | 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\ny=b*10\ni=1\nf=False\nwhile(i<=1250):\n if i*8//100 == x and i//10 == y:\n print(i)\n f=True\n break\n i+=1\nif not f:\n print(-1)', 'a, b = map(int, input().split())\ny=b*10\nf=False\nfor i in range(y, y+10):\n if i*8//100 == a:\n print(i)\n f=True\n ... | ['Wrong Answer', 'Accepted'] | ['s273230838', 's792454547'] | [3060.0, 3060.0] | [18.0, 20.0] | [176, 148] |
p02755 | u811202694 | 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,int(1e6)):\n left = int(i * 0.08) \n right = int(i * 0.1)\n if left == a and right == b:\n print(i)\n break\nprint(-1)', 'a,b = map(int,input().split())\n\nfor i in range(1001):\n left = int(i * 0.08) \n right = int(i * 0.1)\n if left == a and right == b:... | ['Wrong Answer', 'Accepted'] | ['s055600110', 's134690278'] | [3060.0, 3060.0] | [599.0, 18.0] | [170, 165] |
p02755 | u811436126 | 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\nl = int(a / 0.08)\nr = int((a + 0.999999999999) / 0.08)\n\nans = r\nflag = False\nfor i in range(l, r + 1):\n if math.floor(i * 0.1) == b:\n ans = min(r, i)\n flag = True\n\nprint(ans) if flag else print(-1)\n', 'import math\n\na, b = map(int, input(... | ['Wrong Answer', 'Accepted'] | ['s855077223', 's923337832'] | [3060.0, 3060.0] | [18.0, 19.0] | [262, 269] |
p02755 | u812576525 | 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\u200b\nA, B = list(map(int,input().split()))\n\u200b\ncnt = 0\nfor i in range(1,10000):\n X = math.floor(i * 0.08)\n Y = math.floor(i * 0.1)\n if A == X and B == Y:\n print(i)\n cnt += 1\n break\n\u200b\nif cnt == 0:\n print(-1)\n', 'A,B = list(map(int,input().split()))\... | ['Runtime Error', 'Accepted'] | ['s505336086', 's769686403'] | [2940.0, 3060.0] | [17.0, 21.0] | [253, 179] |
p02755 | u813098295 | 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... | ['\n\nusing namespace std;\n\nint main() {\n int a, b; cin >> a >> b;\n for (int i = 0; i <= 10000; i++) {\n if ( i*8/100 == a && i*10/100 == b) {\n cout << i << endl;\n return 0;\n }\n }\n cout << -1 << endl;\n return 0;\n}', 'def main():\n a, b = map(int, input().split())\n for x in range(1... | ['Runtime Error', 'Accepted'] | ['s236363643', 's320309458'] | [2940.0, 2940.0] | [17.0, 37.0] | [248, 222] |
p02755 | u813993459 | 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())\ntmp = range(int(y/0.1), int((y+1)/0.1))\nfor i in range(int(x/0.08), int((x+1)/0.08)):\n if i in tmp:\n print(i)\n break\nprint(-1)', 'x, y = map(int, input().split())\ntmp = range(int(y//0.1)+1, int((y+1)/0.1))\nans=-1\nfor i in range(int(x//0.08)+1, int((x+1)/0.08)... | ['Wrong Answer', 'Accepted'] | ['s927985012', 's580138830'] | [3060.0, 3060.0] | [19.0, 18.0] | [176, 187] |
p02755 | u819593641 | 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())\nak = []\nbk = []\nfor k in range(-int((-A/0.08)//1),-int(-(A/0.08+12.5)//1)):\n ak.append(k)\nfor k in range(-int((-B/0.10)//1),-int(-(B/0.10+10.0)//1)):\n bk.append(k)\nprint(ak)\nprint(bk)\nans = min(set(ak) & set(bk)) if len(set(ak) & set(bk)) > 0 else -1\nprint(ans)', 'A,B = map(... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s475914894', 's797797295', 's892410517'] | [3064.0, 3064.0, 2940.0] | [18.0, 18.0, 18.0] | [294, 243, 138] |
p02755 | u820284192 | 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\nmin_8 = A * 100 // 8\nmax_8 = max(((A + 1) * 100 // 8) - 1, min_8)\nmin_10 = B * 100 // 10\nmax_10 = max((B + 1) * 100 // 10 - 1, min_10)\n\nif (max_10 < min_8 or max_8 < min_10):\n print(-1)\n exit()\n\nprint(max(max_8,min_10))\n', 'import math\nA, B = map(int, input().spli... | ['Wrong Answer', 'Accepted'] | ['s342666881', 's244494821'] | [3060.0, 3064.0] | [17.0, 17.0] | [261, 267] |
p02755 | u821265215 | 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() # a = result * 0.08, b = result * 0.1\na, b = int(a), int(b)\n \nresult_a = int(a / 0.08)\nresult_b = int(b / 0.1)\n \nif result_a > result_b:\n if int(result_a * 0.08) == a:\n result_a += 1\n c = int(result_a * 0.1)\n if b == c:\n print(result_a)\n else:\n print(-1)\nelse:\n c = ... | ['Wrong Answer', 'Accepted'] | ['s733166696', 's752930161'] | [3060.0, 3064.0] | [17.0, 17.0] | [378, 378] |
p02755 | u821441703 | 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(int, sys.stdin.readline().rstrip().split())\nc = 1e-1000\nd = 1 - c\nA_min = int(A * (100 / 8.) + d)\nA_max = int((A + d) * (100 / 8.))\nB_min = int(B * 10.)\nB_max = int((B + d) * 10.)\n\nif min(A_max, B_max) - max(A_min, B_min) >= 0:\n print(max(A_min, B_min))\nelse:\n print('-1')", "... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s157249252', 's191530387', 's317936942'] | [3064.0, 3060.0, 3064.0] | [17.0, 18.0, 17.0] | [301, 301, 299] |
p02755 | u821775079 | 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\nans=-1\nfor i in range(1,B*10+1):\n if math.floor(i*0.08)==A and math.floor(i*0.1)==B:\n ans=i\n break\n\nprint(ans)', 'import math\n\nA,B=map(int,input().split())\n\nans=-1\nfor i in range(1,B*10+1)\n if math.floor(i*0.08)==A and math.floor(i*0.1)==B... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s485683067', 's784679183', 's739581127'] | [3060.0, 2940.0, 3064.0] | [18.0, 18.0, 18.0] | [170, 169, 168] |
p02755 | u823885866 | 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, sys.stdin.readline().split())\ni = 0\nres = -1\nwhile i <= 1000:\n if int(i*0.08) == int(i*0.1):\n res = i\n break\n i += 1\nprint(res)', 'import sys\na, b = map(int, sys.stdin.readline().split())\ni = 0\nres = -1\nwhile i <= 1000:\n if int(i*0.08) == a and int(i*0.1) == b:\n r... | ['Wrong Answer', 'Accepted'] | ['s942048880', 's262561680'] | [2940.0, 2940.0] | [17.0, 18.0] | [162, 174] |
p02755 | u831752983 | 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=1\n\nwhile True:\n p=i*8//100\n q=i//10\n if p==a and q==b:\n break\n i+=1\n if i>=a*11 or i>b*11:\n print(-1)\n exit()\nprint(i)', 'a,b=map(int,input().split())\ni=1\n\nwhile True:\n p=i*8//100\n q=i//10\n if p==a and q==b:\n break\n i+=1\n if i>=(a+1)*13 and i>(... | ['Wrong Answer', 'Accepted'] | ['s296547259', 's052428263'] | [2940.0, 3064.0] | [17.0, 18.0] | [163, 172] |
p02755 | u835924161 | 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=50*(b-a)\nif int(0.08*x)==a and int(0.1*x)==b:\n print(x)\nelse:\n print(-1)', 'a,b=map(int,input().split())\nfor i in range(2000):\n if int(i*0.08)==a and int(i*0.1)==b:\n print(i)\n exit()\nprint(-1)'] | ['Wrong Answer', 'Accepted'] | ['s774873345', 's125525864'] | [2940.0, 3064.0] | [17.0, 18.0] | [109, 133] |
p02755 | u838178977 | 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\ninp = input()\nA, B = [int(x) for x in inp.split(" ")]\n\nmin1 = floor(A / 0.08)\nmax1 = floor((A+1) / 0.08 - 0.0001)\nmin2 = floor(B / 0.1)\nmax2 = floor((B+1) / 0.1 - 0.0001)\n\nprint(min1, max1)\nprint(min2, max2)\nif min1 >= min2 and min1 <= max2:\n print(min1)\n print(min1 * 0.08,... | ['Wrong Answer', 'Accepted'] | ['s782194348', 's187902600'] | [3064.0, 3060.0] | [18.0, 17.0] | [423, 312] |
p02755 | u841599623 | 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)\nB_ = int(B / 0.1)\nj = False\nif A_ == B_:\n print(int(A/0.08))\nelse:\n for i in range(abs(A_ - B_)):\n if A_ > B_:\n B_ += 1\n elif A_ < B_:\n A_ += 1\n if int(A / 0.08) == int(B / 0.1):\n j = True\n break\n if j == True:\n pri... | ['Wrong Answer', 'Accepted'] | ['s245171744', 's112202545'] | [3064.0, 2940.0] | [18.0, 18.0] | [330, 172] |
p02755 | u842747358 | 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\nb = B * 10\nans = b\nfor i in range(b, b*2):\n y = math.floor(i * 0.08)\n if y == A:\n ans = min(ans, i)\n break\nif ans == b:\n print(-1)\nelse:\n print(ans)\n', 'import math\n\nA, B = map(int, input().split())\n\nans = -1\nfor i in range(1... | ['Wrong Answer', 'Accepted'] | ['s915401849', 's686836641'] | [3060.0, 2940.0] | [18.0, 19.0] | [222, 206] |
p02755 | u845847173 | 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 n in range(1, 2000):\n if n * 0.08 == A and n * 0.1 == B:\n print(n)\n break\nelse:\n print(-1)', 'A, B = map(int, input().split())\nfor n in range(1, 10000):\n if n * 8 / 100 == A and n * 10 / 100 == B:\n print(n)\n break\nelse:\n print(-1... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s057010219', 's237609062', 's351730722', 's580893291', 's597909587', 's777367704', 's904157259', 's968888581', 's417759073'] | [3064.0, 3064.0, 3444.0, 2940.0, 2940.0, 2940.0, 3064.0, 3060.0, 2940.0] | [18.0, 21.0, 19.0, 19.0, 17.0, 18.0, 18.0, 19.0, 20.0] | [147, 156, 163, 95, 95, 154, 145, 155, 154] |
p02755 | u846808272 | 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())\nsampleA=A*100/8\nsampleB=B*10\nsampleA=int(sampleA)\nsampleB=int(sampleB)\nans=[]\nfor i in range(min(sampleA,sampleB),max(sampleA,sampleB)+100000):\n if int(i*8/100)==A and int(i*0.1)==B:\n ans.append(i)\n break\n else:\n ans.append(-1)\nprint(min(ans))', 'ans... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s463527039', 's559900180', 's816707983', 's394358070'] | [3956.0, 3064.0, 3864.0, 3060.0] | [53.0, 17.0, 52.0, 18.0] | [299, 186, 301, 228] |
p02755 | u847692421 | 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 = [int(x) for x in input().strip().split()]\n\nx = math.floor(A / 0.08)\ny = math.floor(B / 0.1)\n\nif x == y:\n print(x)\nelse:\n print(-1)', 'import math\n\nA, B = [int(x) for x in input().strip().split()]\n\nflg = 0\nfor i in range(1,1250):\n x = math.floor(i * 0.08)\n ... | ['Wrong Answer', 'Accepted'] | ['s919189621', 's033964977'] | [3060.0, 3064.0] | [18.0, 18.0] | [164, 291] |
p02755 | u849151695 | 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\nimport math\n\nans = -1\n\nfor n in range(1,1009):\n if math.floor(n*0.08) == A and math.floor(n*0.1) == B:\n a = n\n break\n\nprint(ans)', 'A, B = map(int,input().split())\n\nimport math\n\nans = -1\n\nfor n in range(1,101):\n if math.floor(n*0.0... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s117634076', 's337289670', 's462219826', 's731148765', 's815834245'] | [3060.0, 3060.0, 3060.0, 2940.0, 3060.0] | [18.0, 19.0, 18.0, 17.0, 18.0] | [240, 207, 238, 176, 252] |
p02755 | u849324100 | 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\n#import numpy as np\n'''a,b= map(int,input().split())'''\n#a, b, c = [list(map(int, input().split())) for _ in range(3)]\n#li0= [int(x) for x in input().split()]\n#n,l= map(int, input().split())\n#x = [list(map(int, input().split())) for _ in range(n)] \na,b= map(int,input().split())\nans=mat... | ['Wrong Answer', 'Accepted'] | ['s768510336', 's852634821'] | [3064.0, 3192.0] | [18.0, 25.0] | [730, 677] |
p02755 | u852210959 | 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 -*-\nimport math\n\na, b = map(int, input().split())\n\ntemp_a1 = (100 * a // 8) + 1\ntemp_a2 = 100 * (a + 1) // 8\ntemp_b1 = 10 * b\ntemp_b2 = 10 * (b + 1)\n\nresult = -1\nfor i in range(int(temp_a1), int(temp_a2)):\n if temp_b1 <= i < temp_b2:\n result = i\n break\n\nprint(resul... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s657488749', 's706377534', 's509573722'] | [3060.0, 3068.0, 3060.0] | [18.0, 19.0, 17.0] | [305, 9, 369] |
p02755 | u854992222 | 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... | ['n, a, b = map(int, input().split())\nif n%(a+b) < a:\n print(n//(a+b)*a+n%(a+b))\nelse:\n print(n//(a+b)*a+a)', "import math\na, b = map(int, input().split())\nx = []\ny = []\nfor i in range(math.ceil(b/0.1), math.floor((b+1)/0.1)):\n y.append(i)\nfor i in range(math.ceil(a/0.08), math.floor((a+1)/0.08)):\n ... | ['Runtime Error', 'Accepted'] | ['s786604035', 's181507500'] | [2940.0, 3060.0] | [17.0, 17.0] | [111, 275] |
p02755 | u857346974 | 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_plus = a+1\nb_plus = b+1\n\nprice_a = int(a*(100/8))\nprice_aplus = int(a_plus*(100/8))\nprice_b = int(b*(100/10))\nprice_bplus = int(b_plus*(100/10))\n\n\nal = list(range(price_a, price_aplus+1))\nbl = list(range(price_b, price_bplus))\nprint(al)\nprint(bl)\n\nans = list(se... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s060909499', 's689895678', 's913763902'] | [3064.0, 3064.0, 3064.0] | [24.0, 18.0, 18.0] | [386, 619, 599] |
p02755 | u860966226 | 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... | ['data = input().split\n\na = int(data[0])\nb = int(data[1])\n\npricea = a // 0.08\npriceb = b // 0.1\n\nif a == b:\n ans = a\nelif a + 1 == b:\n ans = b\nelif a == b + 1:\n ans = a\nelse:\n ans = -1\n \nprint(ans)\n', 'data = input().split()\n\na = int(data[0])\nb = int(data[1])\n\nn = min(int(a / 0.08), int(b / ... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s253137115', 's543897160', 's854977397', 's260362955'] | [2940.0, 3060.0, 3060.0, 3060.0] | [17.0, 22.0, 22.0, 22.0] | [201, 299, 276, 306] |
p02755 | u861886710 | 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()))\nfor i in range(1, 1500):\n if int(i*0.08) == A and int(i*0.10) == B:\n print(i)\n break\nprint("-1")', 'A, B = list(map(int, input().split()))\nans = -1\nfor i in range(1, 1009):\n if int(i*0.08) == A and int(i*0.10) == B:\n ans = i\nprint(ans)', 'A, ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s386776019', 's626893910', 's127468684'] | [9148.0, 9184.0, 9152.0] | [30.0, 32.0, 31.0] | [152, 145, 159] |
p02755 | u863044225 | 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(100):\n if int(i*1.08)==a and int(i*1.1)==b:\n print(i)\n exit(0)\nprint(-1)\n', 'a,b,c=map(int,input().split())\nfor i in range(100):\n if int(i*1.08)==a and int(i*1.1)==b:\n print(i)\n exit(0)\nprint(-1)', 'a,b=map(int,input().split())\nfor i in range(10010... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s357585368', 's422084307', 's912573653'] | [2940.0, 3188.0, 2940.0] | [18.0, 19.0, 19.0] | [124, 125, 118] |
p02755 | u863370423 | 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 tax():\n a, b = map(int, input().strip().split())\n p1 = int(a//0.08)\n p2 = int(b//0.1)\n\n for i in range(p2, p1):\n if int(i*0.1) == b and int(i*0.08) == a:\n print(i)\n return\n print(-1)\n return\ntax()', 'from math import ceil\ndef tax(a, b):\n mina, maxa = ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s120290018', 's273174493', 's562103602', 's417001526'] | [3060.0, 3064.0, 2940.0, 2940.0] | [19.0, 18.0, 18.0, 18.0] | [247, 286, 246, 176] |
p02755 | u866746776 | 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... | ['d8 = {}\nd10 = {}\nfor i in range(1, 100):\n d8[int(i * 1.08)] = i\n d10[int(i * 1.1)] = i\n\nA, B = map(int, input().rstrip().split())\na = d8.get(A, None)\nb = d10.get(B, None)\nif a!= b or a is None or b is None:\n print(-1)\nelse:\n print(a)\n', 'd8 = {}\nd10 = {}\nfor i in range(1, 10000):\n if in... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s399345601', 's807102409', 's560463618'] | [3060.0, 3188.0, 3188.0] | [18.0, 25.0, 26.0] | [246, 321, 414] |
p02755 | u866949333 | 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_l = A / 0.08\na_m = (A+1) /0.08\n\nl = max(a_l, b_l)\nm = min(a_m, b_m)\n\nc = math.ceil(l)\n\nif c < m:\n print(int(c))\nelse:\n print(-1)', "import math\n\ndef main():\n\n A, B = map(int, input().split())\n\n a_l = A / 0.08\n a_m = (A + 1) / 0.08\n\n ... | ['Runtime Error', 'Accepted'] | ['s932978342', 's971730597'] | [3064.0, 3064.0] | [17.0, 19.0] | [177, 323] |
p02755 | u869917163 | 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\nb = B/0.1\n \nb_list = []\nfor _ in range(10):\n b_list.append(b+_)\n \nfor i in b_list:\n pre_cnt = i*0.08\n cnt = int(pre_cnt)\n if cnt == A:\n print(i)\n I = 1\n break\nif I == 0:\n print(-1)', "A,B = map(int,input().split())\nI = 0\nb = B/0.1\n \nb_list = []\nfor... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s051889129', 's156801877', 's447156889', 's576880105', 's753603034', 's767098006', 's916238106', 's555088946'] | [3060.0, 3064.0, 3064.0, 3060.0, 3064.0, 3064.0, 3064.0, 3064.0] | [17.0, 18.0, 17.0, 19.0, 17.0, 17.0, 17.0, 18.0] | [229, 236, 233, 221, 220, 234, 227, 146] |
p02755 | u871303155 | 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 calc_list(X, z):\n\n root = int(X * (100 / z))\n origin = root\n l = [root]\n while True:\n if int((root + 1) * (z / 100)) == X:\n l.append(root + 1)\n root += 1\n else: break\n \n root = origin\n\n while True:\n if int((root - 1) * (z / 100)) == X:\n l.append(root - 1)\n root ... | ['Wrong Answer', 'Accepted'] | ['s783731278', 's672661268'] | [3192.0, 3064.0] | [18.0, 22.0] | [704, 212] |
p02755 | u874644572 | 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... | ['\ndef main():\n a, b = int(input().split())\n for i in range(1100):\n if int(i * 0.08) == a and int(i * 0.1) == b:\n print(i)\n return\n print(-1)\n\nmain()', '\ndef main():\n a, b = map(int, input().split())\n for i in range(1100):\n if int(i * 0.08) == a and int(i * 0.1) == b:\n print(i)\n... | ['Runtime Error', 'Accepted'] | ['s563419970', 's921236552'] | [2940.0, 3064.0] | [17.0, 21.0] | [198, 203] |
p02755 | u878239774 | 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 a % 8 == 0:\n a_min = int(a * 12.5)\nelse:\n a_min = int(a * 12.5) + 1\nif (a + 1) % 8 == 0:\n a_max = int((a + 1) * 12.5) - 1\nelse:\n a_max = int((a + 1) * 12.5)\n\nb_min = b * 10\nb_max = (b + 1) * 10 - 1\n\nif a_max < b_min:\n print("-1")\nelif a_min <= b_min:... | ['Wrong Answer', 'Accepted'] | ['s147435932', 's316750817'] | [3064.0, 3064.0] | [18.0, 18.0] | [389, 390] |
p02755 | u878545651 | 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 = 1\nwhile True:\n if (int(x*0.08) == a and int(x*0.1) == b):\n print(x)\n break\n else:\n if (x > 1500):\n print(-1)\n break\n else:\n x += 1\n', 'a, b = [int(x) for x in input().split()]\n \nif (b < a):\n temp = b\n b = a\n a = temp\n \n ... | ['Runtime Error', 'Accepted'] | ['s563637791', 's099591092'] | [2940.0, 3060.0] | [18.0, 18.0] | [202, 296] |
p02755 | u878654696 | 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 = max((a//0.08)+1, int(a/0.08))\ny = b//0.1*0.1\n\nif int(x*0.08) == int(y*0.08):\n print(x)\nelif int(y*0.1) == int(x*0.1):\n print(y)\nelse:\n print(-1)\n', 'a, b = map(int, input().split())\n\nx = max((a//0.08)+1, int(a/0.08))\ny = b//0.1*0.1\n\nif int(x*0.08) == int(... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s015877362', 's483576233', 's817205267', 's863091387', 's997252883'] | [3060.0, 3060.0, 9144.0, 9160.0, 9092.0] | [18.0, 17.0, 28.0, 31.0, 27.0] | [192, 192, 133, 169, 185] |
p02755 | u891884439 | 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(float, input().split())\nAp = math.floor(A / 0.08)\nBp = math.floor(B / 0.1)\n\nif Ap == Bp:\n print(Ap)\nelse:\n print(-1)', 'A, B = map(int, input().split())\nflag = 0\nfor i in range(1, 1001):\n iP = i * 0.08\n for j in range(1, 1001):\n jP = j * 0.1\n if int(iP) =... | ['Wrong Answer', 'Accepted'] | ['s680705431', 's907104830'] | [2940.0, 3064.0] | [18.0, 310.0] | [145, 323] |
p02755 | u892006633 | 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 = list(range(int((a / 0.08)),int((a+1)/0.08))-1)\nB = list(range(int((b / 0.1)),int((b+1)/0.1))-1)\nprice = set(A) & set(B)\nif len(price) == 0:\n ans = -1\nelse:\n ans = min(price)\nprint(ans)', 'import math\na,b = list(map(int,input().split()))\n\nA = list(range(math.... | ['Runtime Error', 'Accepted'] | ['s140976417', 's385941133'] | [3060.0, 3188.0] | [17.0, 18.0] | [232, 248] |
p02755 | u893185398 | 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... | ['print(-1)', 'A,B = map(int,input().split())\nPA = 1\n\nwhile PA <= 1000:\n if PA*0.1 >= B:\n break\n else:\n PA += 1\n\nif A+1 > PA*0.08 >= A:\n print(PA)\n\nelse:\n print(-1)', 'A,B = map(int,input().split())\nPA = 1\n\nwhile PA <= 1250:\n if PA*0.08 >= A:\n break\n else:\n ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s423180197', 's692431965', 's646066110'] | [2940.0, 2940.0, 3064.0] | [18.0, 18.0, 19.0] | [9, 175, 364] |
p02755 | u896741788 | 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())\nz,x,c,v=10*b,10*b+10-1,50*a//4,50*(a+1)//4-1\nif x<c or v<z:print(-1)\nelse:print(min(z,c))\n ', 'a,b=map(int,input().split())\nz,x,c,v=10*b,10*b+10-1,50*a//4,50*(a+1)//4-1\nfor i in range(max(z,c),min(x,v)+1):\n if i*8//100==a and i//10==b:print(i);exit()\nelse:print(-1)'] | ['Wrong Answer', 'Accepted'] | ['s734743661', 's022837630'] | [3064.0, 3060.0] | [18.0, 19.0] | [121, 171] |
p02755 | u901598613 | 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... | ['19 99', 'a,b=map(int,input().split())\ni=1\nwhile 1:\n if int(i*0.08)==a:\n if int(i*0.1)==b:\n print(i)\n break\n else:\n if int(i*0.08)>a:\n print(-1)\n break\n i+=1'] | ['Runtime Error', 'Accepted'] | ['s528140754', 's982665489'] | [2940.0, 2940.0] | [17.0, 18.0] | [5, 214] |
p02755 | u903699277 | 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 C158():\n A, B = [int(_) for _ in input().split()]\n X1 = int(A / 0.08)\n X2 = int(B / 0.1)\n if X1 == X2:\n print(X1)\n else:\n print("-1")\n\n\nif __name__ == "__main__":\n C158()', 'def C158():\n A, B = [int(_) for _ in input().split()]\n N = 1\n while N <= 10000:\n ... | ['Wrong Answer', 'Accepted'] | ['s081953840', 's328200627'] | [2940.0, 3064.0] | [19.0, 19.0] | [206, 289] |
p02755 | u905743924 | 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\nA, B = map(int, input().split())\nOK = False\nfor n in range(1, 1001):\n if int(floor(n*0.08)) == A and int(floor(n*0.10)) == B:\n OK = True\n ans = n\nprint(ans if OK else '-1')", "from math import floor\nA, B = map(int, input().split())\nOK = False\nfor n in range(1, 101):\n... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s248308626', 's720288150', 's498069262'] | [3060.0, 3060.0, 2940.0] | [18.0, 17.0, 19.0] | [212, 201, 156] |
p02755 | u906501980 | 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 < 1 or b < 1:\n print(-1)\nelse:\n amin = a*100//8 + ((a*100)%8 and 1)\n amax = (a+1)*100//8 + (max((a+1)*100)%8, 1) or 1)\n bmin = b*100//10 + ((b*100)%10 and 1)\n bmax = (b+1)*100//10 + (max(((b+1)*100)%10, 1) or 1)\n A = set(range(amin, amax))\n B = set(r... | ['Runtime Error', 'Accepted'] | ['s683124652', 's033910807'] | [2940.0, 3064.0] | [17.0, 17.0] | [394, 426] |
p02755 | u907414670 | 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, 10**5):\n if (i*8) // 100 == a and i // 10 == b:\n print(n)\n exit()\nprint(-1)', 'a, b = map(int, input().split())\nfor i in range(1, 10**5):\n if (i*8) // 100 == a and i // 10 == b:\n print(i)\n exit()\nprint(-1)'] | ['Runtime Error', 'Accepted'] | ['s122476162', 's568457684'] | [2940.0, 2940.0] | [34.0, 33.0] | [143, 143] |
p02755 | u907446975 | 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 a,b=map(int,input().split())\n answer=False\n for i in range(1,1009):\n if int(i*0.08)==a and int(i*0.10)==b:\n print(i)\n answer=True\n break\n if not answer:\n print(-1)', "def ta():\n (n,m)=input().split()\n n=int(n)\n m=int(m)\n... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s696299289', 's834027841', 's890153581', 's910656943'] | [2940.0, 3064.0, 3064.0, 3064.0] | [17.0, 20.0, 17.0, 17.0] | [239, 622, 435, 190] |
p02755 | u907668975 | 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(lambda x: int(x),input().split())\n\nfor i in range(100) :\n a_tax = int(a* (1/0.08) + i*0.01)\n for j in range(100) :\n b_tax = int(b * (1/0.1) + j*0.01)\n if a_tax == b_tax :\n print(int(a_tax))\n sys.exit()\nprint(-1)\n', '\na,b = map(lambda x: int(x)... | ['Wrong Answer', 'Accepted'] | ['s771810677', 's594276021'] | [2940.0, 2940.0] | [22.0, 20.0] | [275, 199] |
p02755 | u908505367 | 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... | ['mport math\n\neight, ten = map(int, input().split())\n\neight_price = eight / 0.08\nten_price = ten / 0.1\n\nif eight_price >= ten_price:\n bigger = eight_price\n if (bigger // 10) != ten:\n print("-1")\n else:\n print(math.ceil(bigger))\nelse:\n bigger = ten_price\n if (bigger * 8 // 100... | ['Runtime Error', 'Accepted'] | ['s430889097', 's723178120'] | [2940.0, 3064.0] | [18.0, 19.0] | [377, 378] |
p02755 | u919235786 | 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(1300):\n if int(i/25)==a and int(i/10)==b:\n ans=i\n break\nprint(ans)', 'a,b=map(int,input().split())\nans=-1\nfor i in range(101):\n if int(i*/25)==a and int(i/10)==b:\n ans=i\n break\nprint(ans)', 'a,b=map(int,input().split())\n... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s180857006', 's633648440', 's936806125', 's275732205'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [134, 134, 133, 136] |
p02755 | u920204936 | 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 sympy\n\nA,B = map(int,input().split())\nsympy.var("x")\nsol1 = sympy.solve(x*0.08-A,x)\nsol2 = sympy.solve(x*0.10-B,x)\nans = lambda x1,x2 : x1 if x1 == x2 else -1\nprint(int(ans(sol1[0],sol2[0])))', 'A,B = map(int,input().split())\nsol1 = A/0.08\nsol2 = B/0.10\nans = lambda x1,x2 : x1 if x1 == x2 else -1\npr... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s425039423', 's750923982', 's480655235'] | [3060.0, 2940.0, 3188.0] | [19.0, 17.0, 19.0] | [198, 129, 557] |
p02755 | u924828749 | 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()]\nres = -1\nfor i in range(20000):\n if i * 108 // 100 == a and i * 110 // 100:\n res = i\nprint(res)', 'a,b = [int(x) for x in input().split()]\nres = -1\nfor i in range(20000):\n if i * 8 // 100 == a and i * 10 // 100 == b:\n res = i\n break\nprint(res)'] | ['Wrong Answer', 'Accepted'] | ['s558421978', 's616734137'] | [9068.0, 9072.0] | [32.0, 33.0] | [139, 151] |
p02755 | u927282564 | 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())\nif int(25*(a+1)/2)<int(10*b):\n print(-1)\nif int(25*(a+1)/2)=int(10*b):\n if a%2==0:\n print(-1)\n else:\n print(int(25*a/2))\nif int(10*(b+1))<=int(25*a/2):\n print(-1)\nelse:\n if a%2==1:\n print(max([int(25*a/2+1),int(10*b)]))\n else:\n print(max([int(25*a/... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s373929195', 's407442611', 's830212527'] | [2940.0, 2940.0, 3192.0] | [17.0, 18.0, 18.0] | [324, 118, 417] |
p02755 | u927839462 | 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]\na0=12.5*a\na1=12.5*(a+1)\nb0=10*b\nb1=10*(b+1)\nanswer=0\nif(a0>=b1):\n answer=-1\nelif(a1<=b0):\n answer=-1\nelse:\n if(a0<b0):\n answer=a0//1\n else:\n answer=b0//1\nprint(int(answer))', 'import math\nab=list(map(int, input().split()))\... | ['Wrong Answer', 'Accepted'] | ['s170534549', 's589816561'] | [3064.0, 3188.0] | [17.0, 19.0] | [249, 277] |
p02755 | u931462344 | 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(int, input().split())\nfor i in range(1, 10001):\n ax = i*0.08\n bx = i*0.10\n if ax >= a and a > i*0.09:\n if bx >= b:\n print(i)\n sys.exit()\nprint("-1")', 'import sys\n\na, b = map(int, input().split())\nfor i in range(1, 1010):\n if int(i*0.08) ==... | ['Wrong Answer', 'Accepted'] | ['s798934717', 's438831602'] | [2940.0, 2940.0] | [24.0, 18.0] | [209, 163] |
p02755 | u932370518 | 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\nif __name__ == "__main__":\n A, B = map(int, input().split())\n par = A / B\n if par < 0.8:\n print("-1")\n exit(0)\n else:\n a = math.ceil(A / 0.08)\n b = math.ceil(B / 0.1)\n print(a , b)\n if math.floor(a * 0.08) == A and math.floor(a * 0.1) == B... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s539567188', 's846003337', 's645312700'] | [3188.0, 2940.0, 3060.0] | [20.0, 17.0, 18.0] | [480, 474, 354] |
p02755 | u935642171 | 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*(5/4)\nd = a*(11/8)\nif c<=b and b<d:\n print(max(int(12.5*a),int(10*b)))\nelse:\n print(-1)', 'a,b = map(int, input().split())\nok = True\nfor i in range(b*10+1):\n if int(i*0.08)==a and int(i*0.1)==b:\n print(i)\n ok = False\n break\nif ok: print(-1)', 'a,b = map(i... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s071713550', 's407294643', 's743689797'] | [9096.0, 9140.0, 8972.0] | [29.0, 29.0, 29.0] | [127, 159, 157] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.