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
u521518741
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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, 10000):\n if int(0.08 * i) == A and int(0.01 * i) == B:\n print(i)\n quit()\nprint('-1')", "A, B = map(int, input().split())\nfor i in range(1, 10000):\n if int(0.08 * i) == A and int(0.1 * i) == B:\n print(i)\n quit()\nprint('-1')"]
['Wrong Answer', 'Accepted']
['s340968958', 's683594341']
[3060.0, 3064.0]
[25.0, 22.0]
[142, 141]
p02755
u521679253
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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(c) for c in input()]\n\nA = ceil(a / 0.08)\nB = ceil(b/ 0.1)\n\nif (A > B):\n if (floor(B * 0.08) == a):\n print(B);\nelif (B > A):\n if (floor(A*0.1) == b):\n print(A);\nprint(-1);\n\n', 'from math import ceil, floor\n\na, b = [int(c) for c in input()]\nA = ceil(a / 0.08)\nB = ceil(b/ 0.1)\n \nif ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s252196828', 's259321020', 's834259586', 's753173636']
[3056.0, 3064.0, 3060.0, 3064.0]
[17.0, 18.0, 19.0, 18.0]
[191, 270, 271, 281]
p02755
u527993431
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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,10010):\n\tif i*0.08==A and i*0.1==B:\n\t\tprint(i)\n\t\texit()\nprint(-1)', 'A,B=map(int,input().split())\nfor i in range(1,10010):\n\tif int(i*0.08)==A and int(i*0.1)==B:\n\t\tprint(i)\n\t\texit()\nprint(-1)']
['Wrong Answer', 'Accepted']
['s159451183', 's217079743']
[2940.0, 2940.0]
[20.0, 21.0]
[111, 121]
p02755
u529106146
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\nans1 = int(A *100// 8) \nans2 = int(B *100 // 10)\n\nif ans1 = ans2:\n print(ans1)\n\nelif ans1 > ans2:\n ans2_2 = int((B+1) *100 // 10)\n list = [int(ans2)]\n\n for i in range(ans2+1,ans2_2):\n list.append(int(i)) \n \n if int(ans1) in list:\n print...
['Runtime Error', 'Runtime Error', 'Accepted']
['s356611337', 's645966958', 's471993847']
[3064.0, 2940.0, 3064.0]
[19.0, 24.0, 18.0]
[555, 556, 597]
p02755
u530650201
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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(1009):\n answer_A=i*0.08\n answer_B=i*0.1\n if answer_A==A and answer_B==B:\n answer=i\n break\n else:\n answer=-1\n\nprint(answer)', 'A,B=map(int,input().split())\n\nfor i in range(1009):\n answer_A=int(i*0.08)\n answer_B=int(i*0.1...
['Wrong Answer', 'Accepted']
['s115806148', 's980538914']
[3060.0, 2940.0]
[17.0, 18.0]
[200, 210]
p02755
u531599639
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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)\nD = -(-(A+1)//0.08)\nfor i in range(C,D):\n if i//10 == B:\n break\n print(i)\nelse:\n print(-1)', 'A, B = map(int, input().split())\nC = -(-A//0.08)\nD = -(-(A+1)//0.08)\nfor i in range(C,D):\n if i//10 == B:\n print(i)\n break\nelse...
['Runtime Error', 'Runtime Error', 'Accepted']
['s175511143', 's838186156', 's159833630']
[3060.0, 3060.0, 3060.0]
[17.0, 17.0, 18.0]
[159, 155, 165]
p02755
u531631168
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\np = math.ceil((a+b)/0.18)\nprint(p if p < (a+b+2)/0.18 and p != 0 else -1)', 'a, b = map(int, input().split())\nexist = 0\nfor i in range(5000):\n if int(i*0.08) == a and int(i*0.1) == b:\n print(i)\n exist = 1\n break\nif exist == 0:\n print(-...
['Wrong Answer', 'Accepted']
['s707015797', 's663947880']
[2940.0, 2940.0]
[17.0, 19.0]
[118, 187]
p02755
u533328562
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['b = [int(x) for x in input().split()]\n \nif (b < a):\n tmp = b\n b = a\n a = tmp\n \n \nx = 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', 'b = [int(x) f...
['Runtime Error', 'Runtime Error', 'Accepted']
['s246344522', 's419384748', 's311623941']
[3064.0, 3060.0, 3064.0]
[20.0, 18.0, 19.0]
[283, 291, 294]
p02755
u535117304
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nx1=a*100//8\nx2=b*10\n if x1//10==b:\n print(x1)\nelse:\n print(-1)\n', 'a,b=map(int,input().split())\nif a*100//8==b*10:\n print(b*10)\nelse:\n print(-1)\n', 'a,b=map(int,input().split())\nans=-1\nfor i in range(1,10000):\n if i*8//100==a and i*10//100==b:\n ans=i\...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s437363157', 's963754611', 's764077115']
[8960.0, 9116.0, 9156.0]
[30.0, 30.0, 30.0]
[98, 84, 137]
p02755
u535236942
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nans = -1\nfor i in range(10101):\n if floor(i*0.08) = a and floor(i*0.1) = b:\n ans = i\n break\nprint(ans)', 'from math import floor\na, b = map(int, input().split())\nans = -1\nfor i in range(10101):\n if floor(i*0.08) == a and floor(i*0.1) == b:\n ...
['Runtime Error', 'Accepted']
['s996416242', 's460079021']
[2940.0, 3060.0]
[18.0, 20.0]
[165, 167]
p02755
u536034761
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\nfrom sys import exit\nA, B = map(int, input().split())\nfor i in range(100):\n if floor(i * 1.08) == A and floor(i * 1.1) == B:\n print(i)\n exit()\nprint(-1)', 'from math import floor\nfrom sys import exit\nA, B = map(int, input().split())\nfor i in range(2000):\n if floor(i * 0.08) =...
['Wrong Answer', 'Accepted']
['s809217130', 's222829940']
[3060.0, 3064.0]
[20.0, 18.0]
[182, 183]
p02755
u536642030
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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.floor((a + 1) / 0.08)\nb_min = math.ceil(b / 0.1)\nb_max = math.floor((b + 1) / 0.1)\n\nif a_max < b_min or b_min < a_max:\n print(-1)\nelse:\n result = b_min if a_min < b_min else a_min\n print(result)', "import math\na,b = map...
['Wrong Answer', 'Accepted']
['s312741041', 's699834358']
[3060.0, 3060.0]
[17.0, 18.0]
[281, 294]
p02755
u538361257
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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(B*10+1):\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())\n\nfor i in range(1100):\n if int(i * 0.08) == A and int(i * 0.1) == B:\n print(i)\n break\nelse:\...
['Wrong Answer', 'Accepted']
['s655549550', 's281068417']
[2940.0, 3064.0]
[17.0, 17.0]
[158, 156]
p02755
u538537141
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['B,A = map(int,input().split())\n\n\nif (B+0.9)*12.5 >= A*10 and A*10 >= B*12.5:\n print(A*10)\nelif (B+0.9)*12.5 >= (A+0.9)*10 and (A+0.9)*10 >= B*12.5:\n print(B*12.5)\nelse:\n print("-1")', 'A,B=map(int,input().split())\n\nimport math\nans="-1"\nfor i in range(10000):\n\n if math.floor(i*0.08)==A and ma...
['Wrong Answer', 'Accepted']
['s289764477', 's129277837']
[3060.0, 3064.0]
[17.0, 21.0]
[190, 178]
p02755
u538808095
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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()))\n\nx = -1\nfor i in range(100):\n if (int(i*1.08) == A) and (int(i*1.1) == B):\n x = i\n break\n \nprint(x)', 'A, B = list(map(int, input()))\n\nx = -1\nfor i in range(10100)\n if (int(i*0.08) == A) and (int(i*0.1) == B):\n x = i\n break\n \nprint(x)', 'A, B = list(map(i...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s392065718', 's411952892', 's962284272', 's280968991']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 20.0]
[138, 139, 140, 148]
p02755
u539367121
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\ndef calc(percent,tax):\n return math.ceil((tax*100)/percent)\n\n\ndef main():\n print(calc(10,B) if calc(10,B)<=calc(8,A)<calc(10,B+1) else -1)\n\n \nif __name__=='__main__':\n A, B = map(int, input().split())\n main()\n ", 'A, B = map(int, input().split())\nfor i in range(1001):\n if i*0.08//1=...
['Wrong Answer', 'Accepted']
['s905262884', 's661026771']
[9068.0, 9216.0]
[30.0, 29.0]
[229, 132]
p02755
u541806319
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
["S = Input().split(' ')\nA = int(S[0])\nB = int(S[1])\nA_t = A/0.08\nB_t = B/0.1\nif A_t == B_t:\n print(A_t)\nelse:\n print(-1)", "S = input().split(' ')\nA = int(S[0])\nB = int(S[1])\nA_t = A/0.08\nB_t = B/0.1\nif A_t == B_t:\n print(A_t)\nelse:\n print(-1)", "import math\n\nS = input().split(' ')\nA = i...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s334683366', 's515585850', 's903339898']
[2940.0, 3060.0, 3064.0]
[17.0, 17.0, 18.0]
[125, 125, 188]
p02755
u547764399
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nanser = 0\nfor i in range(0, 101):\n if i * 0.08 == A:\n if math.floor(i * 0.1) == B:\n anser = i\n else:\n anser = -1\n\nprint(anser)', 'import math\n\nA,B = map(int,input().split())\nanser = 0\nfor i in range(1, 1100):\n if math.floor(...
['Wrong Answer', 'Accepted']
['s399897706', 's440768249']
[3060.0, 3064.0]
[18.0, 17.0]
[201, 232]
p02755
u548976218
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 b-a >= 2 :\n if b/a > 1.25 :\n cst = -1\n else :\n cst = int((b-a)/0.02)\n\nelse :\n if b/a > 1.25 :\n cst = -1\n else :\n cst_a = a / 0.08\n cst_b = b / 0.1\n if cst_a < cst_b :\n cst = int(cst_a)\n elif cs...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s478150498', 's830219848', 's906890924']
[3060.0, 3064.0, 2940.0]
[19.0, 18.0, 17.0]
[361, 289, 150]
p02755
u549494450
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['a = input()\nb = int(input())\nc = 0\nfor i in range(b):\n\td = input().split(" ")\n\tif d[0] == "1":\n\t\tc += 1\n\telse:\n\t\tif c % 2 == 0:\n\t\t\tif d[1] == "1":\n\t\t\t\ta = d[2] + a\n\t\t\telse:\n\t\t\t\ta = a + d[2]\n\t\telse:\n\t\t\tif d[1] == "2":\n\t\t\t\ta = d[2] + a\n\t\t\telse:\n\t\t\t\ta = a + d[2]\nif ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s427592130', 's861468242', 's929884221']
[3064.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0]
[296, 187, 197]
p02755
u553308611
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nyenA = int(A / 0.08)\nyenB = int(B / 0.1)\nif yenA == yenB:\n print(yenA)\nelse:\n print(-1)\n', 'A, B = map(int, input().split())\nyenA = int(A / 1.08)\nyenB = int(B / 1.1)\nif yenA == yenB:\n print(yenA)\nelse:\n print(-1)\n', 'import math\n\nA, B = map(int, input().spl...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s141782015', 's541022025', 's527236199']
[2940.0, 2940.0, 3064.0]
[18.0, 17.0, 18.0]
[127, 127, 867]
p02755
u556225812
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nx = math.ceil((A+1)/0.08)\ny = math.ceil((B)/0.1)\nif x >= y:\n print(y)\nelse:\n print(-1)', 'import math\nA, B = map(int, input().split())\nlst = []\nfor i in range(1, 1010):\n if int(i*0.08) == A and int(i*0.1) == B:\n lst.append(i)\n\nif len(lst) > 0:\n ...
['Wrong Answer', 'Accepted']
['s667377861', 's496749242']
[3064.0, 3064.0]
[18.0, 19.0]
[133, 201]
p02755
u557750361
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 decimal\ndecimal.getcontext().prec = 4\nA, B = map(int, input().split())\n \nA_price = (A / 8) * 100\n \nB_price = (B / 10) * 100\n \nif int(A_price) == int(B_price):\n\tprint(int(A_price))\nelse:\n\tX = (int(A_price) / 100) * 10\n Y = (int(B_price) / 100) * 8\n if B == int(X):\n \tprint(int(A_price))...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s013520527', 's279113691', 's531205790', 's631493159', 's737412989', 's744632948', 's769723618', 's874748330', 's893543547', 's059388935']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 18.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[373, 137, 372, 236, 142, 158, 231, 328, 320, 253]
p02755
u561935133
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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(y) for y in input().split(' ')]\npriceA_min = int((A/8) * 100)\npriceA_max = int(((A+1)/8) * 100)\nprint(priceA_min, priceA_max)\nfound = False\nfor x in range(priceA_min,priceA_max+1,1):\n if int(x*0.1) == B:\n print(x)\n found = True\n break\nif not found:\n print(-1)", "A, B = [int(y) for y ...
['Wrong Answer', 'Accepted']
['s327407470', 's608769624']
[3064.0, 3064.0]
[19.0, 18.0]
[282, 424]
p02755
u569479281
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 == 4/5*B:\n ans = 10*B\n print(ans)\nelse:\n print('-1')", "A, B = map(int, input().split())\n\nif A == 4/5*B:\n ans = 10*B\n print(ans)\nelif A == B: \n hhh = 25/2*A\n print(hhh)\nelse:\n print('-1')\n \n ", 'a, b = map(int, input().split())\nfor n in range(1,10**6)...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s261792256', 's323746320', 's132372377']
[2940.0, 3064.0, 2940.0]
[18.0, 19.0, 185.0]
[94, 217, 119]
p02755
u569776981
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 = 0\nx = 1\nwhile a == 0:\n if int(x * 0.08) == A:\n if int(x * 0.1) == B:\n a = 1\n print(x)\n exit()\n else:\n x += 1\n else:\n x += 1\n if x > B / 0.09:\n print(-1)\n a = 1', 'A, B = map(int,i...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s059596321', 's928037269', 's947975575']
[9188.0, 9196.0, 9096.0]
[28.0, 27.0, 31.0]
[283, 235, 235]
p02755
u573234244
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 = input().split()\n\na = int(a)\nb = int(b)\n\nB_low = math.ceil(b * 10)\nA_high = math.floor((a+1) * 12.5)\n\nif A_high < B_low:\n print('-1')\nelse:\n print('B_low')\n ", "import math\n\na,b = input().split()\n\nB_low = math.ceil(b * 10)\nA_high = math.floor((a+1) * 12.5)\n\nif A_high < ...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s169468595', 's360205569', 's547750143', 's771681710', 's879820758']
[2940.0, 3064.0, 3060.0, 3060.0, 3060.0]
[18.0, 18.0, 17.0, 19.0, 19.0]
[184, 154, 176, 177, 204]
p02755
u574380888
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nmod = (a*100) % 8\neightpermin = a * 100 // 8\n\nif mod != 0:\n eightpermin += 1\n\ntenpermax = (b+1) * 10 - 1\n\nif eightpermin >= tenpermax:\n print(eightpermin)\nelse:\n print(-1)', 'a, b = map(int, input().split())\nmoney = 1\nwhile money < 1010:\n\n if money * 8 // 1...
['Wrong Answer', 'Accepted']
['s319158972', 's142162811']
[3060.0, 2940.0]
[18.0, 17.0]
[213, 211]
p02755
u578441226
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nfor i in range(1,101):\n Ahan = int(i * 0.08)\n Bhan = int(i * 0.10)\n if (Ahan == A and Bhan == B):\n print(i)\n break\nprint(-1)', "A,B = (int(x) for x in input().split())\nfor i in range(10,1001):\n Ahan = int(i * 0.08)\n Bhan = int(i * 0.10)\n ...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s164556166', 's432685146', 's605635706', 's834352900', 's884693858', 's268083937']
[3060.0, 3060.0, 2940.0, 2940.0, 2940.0, 3060.0]
[17.0, 17.0, 19.0, 18.0, 19.0, 19.0]
[187, 191, 189, 189, 183, 189]
p02755
u578970900
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nb = b * 10 - 9\nr = -1\nfor i in range(b, b+20):\n print(i * 0.08)\n if int(i * 0.08) == a:\n r = i\n break\nprint(r)', 'a, b = map(int, input().split())\nb = b * 10\nr = -1\nfor i in range(b, b+10):\n if int(i * 0.08) == a:\n r = i\n break\nprint...
['Wrong Answer', 'Accepted']
['s755150699', 's550565138']
[3064.0, 3064.0]
[18.0, 17.0]
[163, 139]
p02755
u581403769
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\nas = math.ceil(a / 0.08)\nal = math.floor((a + 1) / 0.08)\nbs = math.ceil(b / 0.10)\nbl = math.floor((b + 1) / 0.10)\n\nfor i in range(1000):\n if as <= i < al and bs <= i < bl:\n print(i)\n break', 'a, b = map(int, input().split())\n\nimport math\nfla...
['Runtime Error', 'Accepted']
['s772303015', 's596774626']
[9004.0, 9180.0]
[26.0, 27.0]
[251, 219]
p02755
u582415761
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['for i in range(1,10100):\n if int(i*0.08)==A and int(i*0.1)==B:\n print(i)\n break\nelse:\n print(-1)', 'A,B = map(int,input().split())\n\nfor i in range(1,10100):\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', 'Accepted']
['s569309539', 's633646212']
[2940.0, 2940.0]
[18.0, 21.0]
[116, 150]
p02755
u591016708
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 check(x, A, B):\n if int(x * 0.08) == A and int(x * 0.1) == B:\n return True\n else:\n return False\n\ndef solve(A, B):\n left = 0\n right = 1250\n ans = []\n for i in range(0, 1251):\n if check(i, A, B):\n print(i)\n exit()\n\tprint(-1)\n\n\ndef main()...
['Runtime Error', 'Accepted']
['s648610064', 's206139780']
[2940.0, 3188.0]
[17.0, 20.0]
[394, 396]
p02755
u591322332
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 solve():\n a,b=map(int,input().split())\n start=int(a*12.5)\n end=int(b*9.9)\n for i in range(end,start+1):\n if(round(i*0.08)==a and round(i*0.1)==b):\n print(i)\n return\n print(-1)\n\n\nsolve()', 'def solve():\n a,b=map(int,input().split())\n start=int(min(a*12...
['Wrong Answer', 'Accepted']
['s463765526', 's702725827']
[3060.0, 3060.0]
[17.0, 18.0]
[233, 266]
p02755
u592035627
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\nnumber1 = int(A*100/8)\nnumber2 = int(B*100/10)\nif number1/1 == number1//1:\n number1 = number1//1 + 1\nif number2/1 == number2//1:\n number2 = number2//1 + 1\n\nif number1//10 == B:\n if number2*8//100 == A:\n if number1 <= number2:\n print(numbe...
['Wrong Answer', 'Accepted']
['s896877250', 's336592237']
[3064.0, 3064.0]
[17.0, 17.0]
[468, 500]
p02755
u593364182
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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(1500):\n if int(i*0.08) == int(i*0.1):\n print(i)\n\nprint(-1)', 'a,b=map(int,input().split())\nfor i in range(1500):\n if int(i*0.08) == a and int(i*0.1) == b:\n print(i)\n\nprint(-1)\n', 'a,b=map(int,input().split())\na=int(a/0.08)\nb=int(b/0.1)\n\nif a==b:\n pr...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s001042602', 's359556911', 's395138242', 's693347954', 's354874602']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0, 17.0, 18.0]
[106, 118, 94, 97, 129]
p02755
u596297663
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nflag = 0\nfor i in range(10*b, 11*b):\n\tif int(i * 0.08) == a:\n\t\tif flag==0:\n\t\t\tans\u3000=\u3000i\n\t\t\tflag = 1\nif flag == 1:\n\tprint(ans)\nelse:\n\tprint(-1)', 'a,b = map(int, input().split())\nflag = 0\nfor i in range(10*b, 11*b):\n\tif int(i * 0.08) == a:\n\t\tif flag==...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s002827130', 's023980885', 's048867630', 's416697035', 's476991887', 's589787237', 's845484116']
[2940.0, 2940.0, 3060.0, 3064.0, 2940.0, 2940.0, 3060.0]
[18.0, 18.0, 19.0, 19.0, 17.0, 18.0, 18.0]
[176, 170, 188, 176, 193, 171, 175]
p02755
u597455618
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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*25//2)\namax = -(-(a+1)*25//2)\nbmin = b*10\nbmax = bmin + 10\nprint(amax)\nfor i in range(amin, amax):\n for j in range(bmin, bmax):\n if i == j:\n print(i)\n exit()\nprint(-1)\n', 'a, b = map(int, input().split())\namin = -(-a*25//2)\nama...
['Wrong Answer', 'Accepted']
['s063765663', 's704873467']
[3060.0, 3060.0]
[17.0, 17.0]
[245, 233]
p02755
u597622207
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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# math.floor()\n\nA, B = map(int ,input().split())\nba = (A / 8) * 100\nba_floor = ((A+1) /8 ) * 100\nbb = (B / 10) * 100\nbb_floor = ((B+1) / 10) * 100\n\nfor i in range(int(ba), int(ba_floor)):\n print(i)\n if int(bb) <= i < int(bb_floor):\n print(i)\n exit()\n\nprint(-1)', 'A, B = ...
['Wrong Answer', 'Accepted']
['s188058864', 's448169080']
[3064.0, 3064.0]
[17.0, 18.0]
[292, 158]
p02755
u600896094
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 * 1.10) == B:\n print(i)\n exit()\nprint(-1)', 'A, B = map(int, input().split())\nfor i in range(1, 1001):\n if int(i * 0.08 ) == A and int(i * 0.10) == B:\n print(i)\n exit()\nprint(-1)\n']
['Wrong Answer', 'Accepted']
['s781322233', 's580451140']
[2940.0, 2940.0]
[17.0, 17.0]
[150, 151]
p02755
u601344838
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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# @Time : 2020/3/1 19:59\n# @Author : DIRICHLET\n# @File : main.py\na=[]\ndef myin(fun=int):\n global a\n a=list(map(fun,input().split()))\n#myin(int)\na,b=map(int,input().split())\noner=(a+1)/0.08\nif a%2==0:\n oner=round((a+1)/2*25)+1\n onel=a//2*25\nelse:\n oner=(a+1)...
['Wrong Answer', 'Accepted']
['s041788385', 's395388380']
[3064.0, 3064.0]
[17.0, 18.0]
[570, 599]
p02755
u604978223
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\nbefore_A = A/0.08\nbefore_B = B/0.1\n\nif A > B:\n print(-1)\n break\nelse:\n if before_A <= before_B:\n ans = before_B\n if int(before_B * 0.08) == A:\n print(int(ans))\n else:\n print(-1)\n else:\n ans = before_A\n ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s255278692', 's800124755', 's145277667']
[3188.0, 3064.0, 2940.0]
[18.0, 18.0, 17.0]
[397, 309, 126]
p02755
u606878291
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\noriginal_a = int(A / 0.08)\noriginal_b = int(B / 0.1)\n\noriginal = max(original_a, original_b)\n\nif int(original * 0.08) == A and int(original * 0.2) == B:\n print(original)\nelse:\n print(-1)\n", "A, B = map(int, input().split(' '))\n\nfor n in range(1000 + 1):\n if ...
['Wrong Answer', 'Accepted']
['s177877096', 's305828017']
[3064.0, 2940.0]
[17.0, 18.0]
[230, 163]
p02755
u607563136
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\ncnt = 0\n\nfor i in range(1,1010):\n A = 0.08 * a\n B = 0.1 * b\n if int(A) == int(B):\n print(int(A))\n cnt += 1\n break\nif cnt == 0:\n print(-1)\n ', 'a, b = map(int,input().split())\n\ncnt = 0\n\nfor i in range(1,1010):\n A = int(i * 8 //10...
['Wrong Answer', 'Accepted']
['s577724900', 's178170538']
[9176.0, 9060.0]
[34.0, 30.0]
[208, 222]
p02755
u608493167
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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*100//8\nd = (a+1)*100//8\ne = b*100//10\nf = (b+1)*100//10\nfor i in range(d-c):\n if c+i-1>=e and c+i-1<f:\n print(c+i-1)\n break\nelse:\n print(-1)', 'a,b=map(int,input().split())\nc=a*100//8\nd=(a+1)*100//8\ne=b*100//10\nf=(b+1)*100//10\nfor i in range(c-d):\n if a+i<e ...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s198587518', 's339430027', 's736241332', 's588888984']
[3188.0, 3060.0, 3060.0, 3064.0]
[19.0, 19.0, 19.0, 18.0]
[183, 168, 166, 219]
p02755
u608579392
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\ntax8 = int(A / 0.08)\ntax10 = int(B / 0.1)\nwindow = [min(tax8, tax10), max(tax8, tax10)]\n\nfor i in range(0, max(int(A / 0.2), int(B / 0.2))):\n for j in range(window[0], window[1] + 1):\n if int(i * 0.08) == int(j * 0.08) and int(i * 0.08) == A and int(j * 0.1)...
['Wrong Answer', 'Accepted']
['s292767254', 's690175172']
[3064.0, 3060.0]
[191.0, 17.0]
[366, 175]
p02755
u608585697
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['\nimport math\nA, B = map(int, input().split())\nX = math.ceil(A/0.08)\nprint(A/0.08, X)\nif int(X*0.1) == B:\n print(X)\nelse:\n print(-1)', '\nimport math\nA, B = map(int, input().split())\nX = math.ceil(A/0.08)\nZ = -1\nwhile True:\n if int(X*0.08) != A:\n break\n if int(X*0.10) == B:\n Z...
['Wrong Answer', 'Accepted']
['s386153804', 's679508998']
[3060.0, 3060.0]
[18.0, 19.0]
[183, 247]
p02755
u609093494
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nanswer = None\nflag = False\nfor i in range(1009):\n \n if (A == i*0.08//1) and (B == i*0.1//1):\n Answer = i\n print(Answer)\n flag = True\n \n if flag:\n break\nif (answer = None):\n print(-1)\n \n', 'A, B = map(int, input(). split())\nanswer = None\nfla...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s165541409', 's408489099', 's663716296', 's713860878', 's765851929', 's623364921']
[2940.0, 2940.0, 2940.0, 3064.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 18.0, 18.0, 18.0]
[246, 203, 250, 224, 185, 270]
p02755
u609814378
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 = 19,99\n\neight = ((A*100)/8)\nEightYen = math.floor(eight)\n\nten = (A*10)\nTenYen = math.floor(ten)\n\nif TenYen == EightYen:\n print(TenYen)\nelse:\n print(-1)', 'import math\nA,B = map(int, input().split())\n\neight = ((A*100)/8)\nEightYen = math.floor(eight)\n\nten = (A*10)\nTenYen = ma...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s082672936', 's082786944', 's058286161']
[3060.0, 3060.0, 3060.0]
[19.0, 21.0, 19.0]
[175, 195, 195]
p02755
u610042046
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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_list = [int(a/0.08) + i for i in range(13)]\nb_list = [int(b/0.1) + j for j in range(10)]\ncom = set(a_list) & set(b_list)\nprint(a_list)\nprint(b_list)\nprint(com)\n\nif len(com) == 0:\n print(-1)\nelif len(com) != 0:\n if int(min(com)*0.08) != a or int(min(com)*0.1) != b:\n ...
['Wrong Answer', 'Accepted']
['s255876639', 's014500290']
[9124.0, 9160.0]
[32.0, 32.0]
[355, 388]
p02755
u616017354
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['p=input().split(" ")\na=int(p[0])\nb=int(p[1])\nc=a*10-1\nd=int(a/0.07)-1\nnum=[]\nans=[]\nfor i in range(c,d+1):\n if int(i*0.08)==a:\n num.append(i)\nl=len(num)\nprint(num)\nfor i in range(l):\n if int(num[i]*0.1)==b:\n ans.append(num[i])\nif ans==[]:\n print("-1")\nelse:\n print(ans[0])',...
['Wrong Answer', 'Accepted']
['s902915867', 's863514389']
[3064.0, 3188.0]
[17.0, 19.0]
[298, 288]
p02755
u616217092
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['from sys import stdin\n\n\ndef spam(x, AB, per):\n min_ = x\n max_ = x\n while True:\n min_ -= 1\n tmp = int(min_ * per)\n if AB != tmp:\n min_ += 1\n break\n while True:\n max_ += 1\n tmp = int(max_ * per)\n if AB != tmp:\n max_ -...
['Wrong Answer', 'Accepted']
['s964349048', 's196862638']
[3188.0, 2940.0]
[19.0, 18.0]
[689, 393]
p02755
u620238824
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\nP = A / 0.08\nPX = (A+1) / 0.08\n\nPP = B / 0.1\nPPX = (B+1) /0.1 \n\nif PP <= P and P < PPX: print(P)\nelif P <= PP and PP < PX: print(PP)\nelse:print(-1)', 'A, B = list(map(int, input().split()))\n\nP = A / 0.08\nPX = (A+1) / 0.08\n\nPP = B / 0.1\nPPX = (B+1) /0.1 \n\nif PP...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s095272131', 's661807313', 's827119134', 's862930022']
[3060.0, 2940.0, 3060.0, 3192.0]
[17.0, 17.0, 19.0, 20.0]
[187, 207, 188, 528]
p02755
u620755587
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nax = a / 0.08\nbx = b / 0.10\nif int(ax) != ax:\n print(-1)\n exit()\nif int(bx) != bx:\n print(-1)\n exit()\nprint(min(int(ax), int(bx)))', 'a, b = map(int, input().split())\nfor i in range(1, 10**6):\n if int(0.08 * i) == a and int(0.10 * i) == b:\n print(i)\n...
['Wrong Answer', 'Accepted']
['s745942627', 's083440326']
[3060.0, 2940.0]
[17.0, 308.0]
[175, 150]
p02755
u625007136
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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_increase(a,b):\n\n al = [a+(i / 10) for i in range(0,10,1)]\n bl = [b+(i / 10) for i in range(0,10,1)]\n #print(al)\n #print(bl)\n\n atx8 = list(map(lambda x: x/t8 ,al))\n btx10 = list(map(lambda x: x/t10 ,bl))\n #print(atx8)\n #print(btx10)\n\n for i in atx8:\n if i in btx10...
['Runtime Error', 'Accepted']
['s671200512', 's614441912']
[3064.0, 3060.0]
[20.0, 18.0]
[483, 266]
p02755
u626881915
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\ni = 1\nwhile True:\n if math.floor(i*0.08) == a and math.floor(i*0.1) == b:\n print(i)\n break\n if math.floor(i*0.08) > a or math.floor(i*0.1) > b:\n print(-1)\n break', 'import math\na,b = map(int, input().split())\ni = 1\nwhile True:\n if math.floor(i*0....
['Time Limit Exceeded', 'Accepted']
['s602030373', 's560266211']
[3060.0, 3060.0]
[2104.0, 18.0]
[219, 228]
p02755
u629350026
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\ntempa1=math.ceil(a/0.08)-1\ntempa2=int((a+1)/0.08)\ntempb1=math.ceil(b/0.1)\ntempb2=int((b+1)/0.1)-1\nif tempa1>tempb2 or tempa2<tempb1:\n print(-1)\nelse:\n print(max(tempa1,tempb1))', 'import math\na,b=map(int,input().split())\ntempa1=math.ceil(a/0.08)\ntempa2=int((a+1)/...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s243018353', 's931677678', 's600529010']
[3060.0, 3060.0, 3060.0]
[20.0, 24.0, 17.0]
[219, 231, 225]
p02755
u629607744
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\na=int(round(100/8*a,0))\nb=int(round(10*b,0))\nif a==b:\n\tx=10*b\n\tprint(x)\nelse:\n print('-1')", '2 2', 'import math\na,b=map(int,input().split())\nfor i in range(1,1009):\n\tA=math.floor(i*0.08)\n\tB=math.floor(i*0.1)\n\tif a==A and b==B:\n\t\tprint(i)\n\t\texit()\nprint(-1)']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s291438962', 's857422435', 's707960089']
[2940.0, 2940.0, 3060.0]
[18.0, 17.0, 19.0]
[124, 3, 156]
p02755
u630027862
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 = int((A-1) * 100 / 8)\nx_b = int((B+1) * 100 / 10)\nl = [i for i in range(min(x_a, x_b)-1, max(x_a, x_b)+1)]\nprint(l)\nfor n in l:\n if int(n * 0.08) == A and int(n * 0.10) == B:\n print(n)\n break\nelse:\n print(-1)', 'A, B = map(int, input().split())\nx_a ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s434964675', 's891472816', 's317682021']
[3064.0, 3064.0, 3064.0]
[19.0, 18.0, 18.0]
[266, 238, 257]
p02755
u631755487
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\nasil1_1 = (100*(A))/8\nasil1_2 = (100*(A+1))/8\nasil2_1 = 10*(B)\nasil2_2 = 10*(B+1)\n\nsonuc_1 = max(asil1_1, asil2_1)\nsonuc_2 = min(asil2_2, asil1_2)\nprint(sonuc_1, sonuc_2)\nif sonuc_1>sonuc_2:\n print(-1)\nelse:\n print(math.ceil(sonuc_1))", "A, B = map(in...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s067570885', 's701285905', 's836722255']
[3064.0, 3064.0, 3064.0]
[18.0, 18.0, 18.0]
[288, 289, 289]
p02755
u634046173
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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#print(A/0.08)\n#print(B/0.1)\nga = math.ceil(A/0.08)\ngb = math.ceil(B/0.1)\n\nfor i in range(ga,gb+1):\n #print(math.floor(i*0.08) ,math.floor(i*0.1))\n if math.floor(i*0.08) == A and math.floor(i*0.1) == B:\n print(i)\n exit()\nprint(-1)', 'import math\nA,B = ma...
['Wrong Answer', 'Accepted']
['s894704849', 's737459923']
[9184.0, 9152.0]
[31.0, 27.0]
[281, 322]
p02755
u634576930
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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(1100):\n if int(i*0.8)==A and int(i*0.1)==B:\n print(i)\n break\nelse:\n print(-1)\n', 'A, B=map(int,input().split())\n\nfor i in range(1100):\n\tif int(i*0.08)==A and int(i*0.1)==B :\n\t\tprint(i)\n\t\texit()\nprint(-1)\n']
['Wrong Answer', 'Accepted']
['s802842279', 's922457050']
[2940.0, 2940.0]
[18.0, 20.0]
[144, 122]
p02755
u634856713
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['a = list(map(int,input().split()))\n \nfor i in range(0, 1251):\n if a[0]/0.08 >= i and (a[0]-1)/0.08 < i and a[1]/0.1 >= i and (a[1]-1)/0.1 < i:\n print(i)\n return\nprint(-1)', 'a = list(map(int,input().split()))\n\nfor i in range(0, 1251):\n if a[0]/0.08 >= i and (a[0]-1)/0.08 < i and a[1]/0.1 >= i and (a[...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s135833190', 's173206515', 's180054615', 's834883800', 's985425222', 's927657483']
[2940.0, 3056.0, 3060.0, 3060.0, 3064.0, 2940.0]
[17.0, 18.0, 17.0, 18.0, 17.0, 18.0]
[177, 172, 183, 186, 179, 205]
p02755
u638456847
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\nimport sys\nread = sys.stdin.read\nreadline = sys.stdin.readline\nreadlines = sys.stdin.readlines\n\ndef main():\n A,B = map(int, readline().split())\n\n x1 = ceil(A / 0.08)\n x2 = ceil(B / 0.1)\n print(x1, x2)\n\n if int(x1 * 0.1) == B:\n print(x1)\n elif int(x2 * 0.08...
['Wrong Answer', 'Accepted']
['s708170558', 's202134599']
[3188.0, 3060.0]
[19.0, 17.0]
[397, 379]
p02755
u640603056
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nmoney = B*10\nans=-1\nwhile money//10==B:\n\tprint(money, money//10, int(money*0.08))\n\tif int(money*0.08)==A:\n\t\tans=money\n\t\tbreak\n\tmoney+=1\nprint(ans)\n', 'A, B= map(int, input().split())\nmoney = B*10\nans=-1\nwhile money//10==B:\n\tif int(money*0.08)==A:\n\t\tans=money\n\...
['Wrong Answer', 'Accepted']
['s263528611', 's719116519']
[2940.0, 2940.0]
[17.0, 18.0]
[179, 137]
p02755
u642528832
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 100*A/8==10*B:\n print(int(100*A/8))\nelse:\n print('-1') ", "A,B = map(int,input().split())\nfor i in range(1,1251):\n if i*0.08==A and i *0.1==B:\n print(i)\n exit()\nprint('-1') ", "A,B = map(int,input().split())\nfor i in range(1,1251):\n if int(i*0.08)...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s344115346', 's498730276', 's374684939']
[9068.0, 9032.0, 9164.0]
[30.0, 32.0, 28.0]
[95, 131, 140]
p02755
u646203242
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nk=[]\no=[]\np=[]\nfor i in range(1,101):\n if i==A//1.08:\n k.append(i)\nfor j in range(1,101):\n if j==b//1.1:\n o.append(j)\nfor t in range(len(k)):\n for u in range(len(o)):\n if k[t]==o[u]:\n p.append(k[t])\nif p==[]:\n print(-1)\nelse:\n ...
['Runtime Error', 'Accepted']
['s491275065', 's332985696']
[3064.0, 3064.0]
[17.0, 20.0]
[316, 327]
p02755
u647679586
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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: 0.08 tax, B: 0.10 tax\nA, B = list(map(int, input().split()))\n\n# find candidate prices\ncandidate_prices = [(B*10) + i for i in range(0 , 6)]\n\n# find minimum possible price\nfor p in candidate_prices: \n if int(p*(0.08)) == A:\n print(p)\n\nprint(-1)', '# A: 0.08 tax, B: 0.10 tax\nA, B = list(map(...
['Wrong Answer', 'Accepted']
['s258630900', 's816914051']
[3060.0, 3060.0]
[18.0, 17.0]
[259, 301]
p02755
u651822741
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['import numpy as np\n\ns = np.array(input().split()).astype(int)\n# =============================================================================\n# if s.find("A") >= 0 and s.find("B") >= 0:\n# print("Yes")\n# else:\n# print("No")\n# =============================================================================...
['Runtime Error', 'Accepted']
['s430401704', 's833720427']
[21404.0, 12508.0]
[315.0, 162.0]
[910, 831]
p02755
u652892331
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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_a = int(a // 0.08) + 1\nmax_a = int((a + 1) // 0.08)\nmin_b = int(b // 0.1) + 1\nmax_b = int(b // 0.1) + 1\n\nif max_a < min_b or max_b < min_a:\n print(-1)\nelse:\n print(min(min_a, min_b))', 'a, b = map(int, input().split())\n\ncount = True\nfor i in range(1, 1001):\n ...
['Wrong Answer', 'Accepted']
['s758553134', 's261554025']
[3060.0, 2940.0]
[17.0, 17.0]
[226, 204]
p02755
u657786757
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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()))\nans = A/8*100\nif int(ans*0.1)!=B:\n print("-1")\nelse:print(ans)', 'import math\nA,B = list(map(int,input().split()))\nA_ans_mini = math.ceil(A/0.08)\nA_ans_max = math.floor((A+0.9999)/0.08)\nB_ans_mini = math.ceil(B/0.1)\nB_ans_max = math.floor((B+0.9999)/0.1)\nif A_ans_max ...
['Wrong Answer', 'Accepted']
['s972109991', 's240949636']
[3064.0, 3064.0]
[17.0, 19.0]
[102, 364]
p02755
u660245210
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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(int(a/0.08)+1, int((a+1)/0.08)):\n if int(i * 0.1) == b:\n print(i)\n break\nelse: print(-1)', 'a, b = map(int, input().split())\nfor i in range(int(a/0.08+0.5), int((a+1)/0.08+0.5)):\n if int(i * 0.1) == b:\n print(i)\n break\nelse: p...
['Wrong Answer', 'Accepted']
['s958703416', 's961972572']
[3064.0, 2940.0]
[19.0, 17.0]
[153, 159]
p02755
u661439250
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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=[]\nfor i in range(1250):\n if int(i*0.08) == a and int(i*0.1) == b:\n c.append(i)\nc.append(-1)\n\nprint(c)\nprint(c[0])', 'a, b = map(int, input().split())\nc=[]\nfor i in range(1250):\n if int(i*0.08) == a and int(i*0.1) == b:\n c.append(i)\nc.append(-1)\n\np...
['Wrong Answer', 'Accepted']
['s389981292', 's466052802']
[3064.0, 3060.0]
[18.0, 17.0]
[159, 150]
p02755
u662396511
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 int(a//0.08) <= int(b//0.1):\n if int(b//0.1) < int((a+1)//0.08):\n print(int(b//0.1))\n else:\n print(-1)\nif int(a//0.08) > int(b//0.1):\n if int(a//0.08) < int((b+1)//0.1):\n print(int(a//0.08))\n else:\n print(-1)', 'a, b = map(int, in...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s483118353', 's792678086', 's858530203', 's277773983']
[9200.0, 9188.0, 9144.0, 9208.0]
[24.0, 24.0, 23.0, 24.0]
[285, 229, 252, 334]
p02755
u667084803
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['cuts = []\nfor i in range(2000):\n cuts+= [[i*0.08, i*0.10]]\n \nA, B = map(int,input().split())\n\nfor i in range(2000):\n if [A, B] == cuts[i]:\n print(i)\n break', 'cuts = []\nfor i in range(2000):\n cuts+= [[int(i*0.08), int(i*0.10)]]\n \nA, B = map(int,input().split())\n\nfor i in range(1,2000):\n if...
['Wrong Answer', 'Accepted']
['s674643590', 's877305813']
[3188.0, 3188.0]
[21.0, 20.0]
[164, 194]
p02755
u674052742
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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"""\nCreated on Sun Apr 12 20:20:19 2020\n\n@author: Kanaru Sato\n"""\n\na, b = list(map(int, input().split()))\nl = []\n\nif a//0.08 - a/0.08 == 0.0:\n i = int(a/0.08)\nelse:\n i = int(a/0.08)+1\n\nwhile 0.08*i < a+1:\n l.append(i)\n i += 1\n\nflag = 0\n\nfor candidate in l:\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s139640830', 's659249007', 's822446178']
[3064.0, 3064.0, 3064.0]
[17.0, 17.0, 18.0]
[428, 422, 375]
p02755
u674588203
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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*0.08)+0.5)//1==A and ((i*0.1)+0.5)//1==B:\n print(i)\n exit()\n else:\n pass\nprint(-1)', 'A,B=map(int,input().split())\nfor i in range(20000):\n if (i*8)//100==A and (i*10)//100==B:\n print(i)\n exit()\n else:\...
['Wrong Answer', 'Accepted']
['s998993112', 's010237113']
[2940.0, 2940.0]
[17.0, 21.0]
[167, 157]
p02755
u680851063
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nprint(a,b)\n\nfor i in range(1,1250):\n if int(i*0.08)==a and int(i*0.1)==b:\n print(i)\n break\nelse:\n print(-1)', 'a,b=map(int,input().split())\n\nfor i in range(1,1250):\n if int(i*0.08)==a and int(i*0.1)==b:\n print(i)\n break\nelse:\n print(-...
['Wrong Answer', 'Accepted']
['s917657013', 's322908566']
[3188.0, 3060.0]
[19.0, 19.0]
[156, 145]
p02755
u681811488
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\naa = a + 0.9\nbb = b + 0.9\n\nif int(bb/0.1) > 1000:\nbb = 1000\n\naaa = set(range(int(a/0.08),int(aa/0.08)))\nbbb = set(range(int(b/0.1), int(bb/0.1)))\n\nx = list(aaa.intersection(bbb))\n\nif len(x) == 0:\n print('-1')\nelse:\n print(min(x))\n", 'a,b=map(int,input().split())\nfor i...
['Runtime Error', 'Accepted']
['s591402440', 's146347257']
[2940.0, 2940.0]
[17.0, 18.0]
[263, 126]
p02755
u685684561
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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=input(),input()\nimport math\nx1=math.ceil(x*12.5)\nx2=math.ceil((x+1)*12.5)-1\ny1=math.ceil(y*10)\ny2=math.ceil((y+1)*10)-1\nif x1>y2 or y1>x2:\n\tprint -1\nelse:\n\tprint int(max(x1,y1))', 'x,y=map(int, input().split())\nimport math\nx1=math.ceil(x*12.5)\nx2=math.ceil((x+1)*12.5)-1\ny1=math.ceil(y*10)\ny2=math...
['Runtime Error', 'Accepted']
['s673676152', 's772844653']
[2940.0, 3060.0]
[17.0, 18.0]
[182, 195]
p02755
u690184681
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\nAA = A*100//8\nAF = (A+1)*100//8 + 1 if (A+1)*100%8!=0 else (A+1)*100//8\nBB = B*10\nAAA = [i for i in range(AA,AF]\nBBB = [i for i in range(BB,(B+1)*10)]\nAB_list = list(set(AAA)&set(BBB))\n\nans = min(AB_list) if AB_list and (12<min(AB_list)<=1000) else -1\nprint(ans)', 'A,B = map(...
['Runtime Error', 'Accepted']
['s162413469', 's902364766']
[2940.0, 3064.0]
[17.0, 19.0]
[294, 327]
p02755
u694665829
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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(1000):\n if int(i/100*8)==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(1, 1250):\n if int(i/100*8) == a and int(i/10) == b:\n ans = i\n break\nprint(ans)']
['Runtime Error', 'Accepted']
['s664161778', 's428472318']
[2940.0, 3060.0]
[17.0, 18.0]
[128, 152]
p02755
u695811449
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['for i in range(10**6):\n if i*8//100==A and i*10//100==B:\n print(i)\n break\nelse:\n print(-1)', 'A,B=map(int,input().split())\n\nfor i in range(10**6):\n if i*8//100==A and i*10//100==B:\n print(i)\n break\nelse:\n print(-1)\n']
['Runtime Error', 'Accepted']
['s401411934', 's637217317']
[2940.0, 2940.0]
[17.0, 198.0]
[110, 141]
p02755
u696444274
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['\nimport math\nimport itertools\nimport statistics\n#import numpy as np\nimport collections\na, b = list(map(int, input().split()))\n#print(a/0.08)\nprice = a//0.08\nwhile math.floor(price*0.08)==a:\n if b==price*0.1//1:\n ans = int(price//1)\n print(ans)\n exit() \n price += 1\n\nprint("-1...
['Wrong Answer', 'Accepted']
['s792065706', 's618126411']
[5148.0, 5148.0]
[38.0, 36.0]
[345, 461]
p02755
u697382193
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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,b = [int(a), int(b)]\nmin_a = (a * 100) / 8\nif min_a != ((a * 100) // 8):\n min_a += 0.5\n \nmax_a = ((a + 1) * 100) / 8\nmin_b = b * 10\nmax_b = (b + 1) * 10\n\nif min_a >= min_b and min_a < max_b:\n print(min_a)\nelif min_b >= min_a and min_b < max_a:\n print(min_b)\nelse:\n print('-1...
['Wrong Answer', 'Accepted']
['s177310610', 's911344808']
[3064.0, 3064.0]
[17.0, 17.0]
[305, 310]
p02755
u699696451
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\none = A/0.08\ntwo = (A+1)/0.08\nthree = B/0.1\nfour = (B+1)/0.1\n\nprint(one, two, three, four)\n\n\nif two < three or one > four:\n kai = -1\nif three <= one and four >= one:\n kai = one\nif one < three and four <= two:\n kai = three\n\nprint(kai)\n ', 'A, B = map(int,i...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s011874491', 's170582298', 's221807037', 's293804359', 's363082868', 's386721544', 's723748762', 's814479640', 's989833338', 's554210353']
[3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 3060.0, 2940.0, 3060.0]
[18.0, 18.0, 18.0, 18.0, 17.0, 18.0, 18.0, 17.0, 22.0, 23.0]
[280, 258, 248, 277, 252, 249, 245, 248, 207, 244]
p02755
u699944218
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 = list(map(int,input().split()))\nX = x//0.08\nY = y//0.1\nif X == Y:\n print(X)\nelse:\n print(-1)', 'import sys\n# input = sys.stdin.readline\na,b = [int(c) for c in input().split()]\nmaxa = (a+1) / 0.08\nmaxb = (b+1) / 0.1\nmina = a / 0.08\nminb = b / 0.1\nmmax = int(min(maxa,maxb)) - 1 if int(min(maxa,maxb...
['Wrong Answer', 'Accepted']
['s746540753', 's163496346']
[2940.0, 3064.0]
[17.0, 18.0]
[100, 393]
p02755
u701426727
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 = [3, 3]\ntax_8 = int(tax[0])\ntax_10 = int(tax[1])\n\nprice_8 = [math.ceil(tax_8*(100/8)), math.ceil((tax_8+1)*(100/8))-1]\nprice_10 = [math.ceil(tax_10*(10)), math.ceil((tax_10+1)*(10))-1]\nif(min(price_8[1], price_10[1]) < max(price_8[0], price_10[0])):\n print(-1)\nelse:\n print(max(price_8...
['Wrong Answer', 'Accepted']
['s960524964', 's588930807']
[3064.0, 3064.0]
[17.0, 17.0]
[326, 339]
p02755
u703823201
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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, 1001):\n if int(i * 0.08) == A and int(i * 0.10) == B:\n print(i)\n break\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.10) == B:\n print(int(i * 0.08))\n break\np...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s151086195', 's982166939', 's699718352']
[2940.0, 2940.0, 3060.0]
[18.0, 17.0, 17.0]
[149, 161, 166]
p02755
u708019102
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 a%2 == 0:\n amax = round((a+1)*12.5)\n amin = a*12.5\nelse:\n amax = (a+1)*12.5\n amin = round(a*12.5)\nbmax = int((b+1)*10)\nbmin = int(b*10)\nhantei = bmin\nif amax <= bmin:\n hantei = -1\nelif bmax <= amin:\n hantei = -1\nelif bmin < amin:\n hantei = amin\nprint(h...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s647812148', 's812236260', 's830027356']
[3064.0, 3064.0, 3064.0]
[18.0, 17.0, 18.0]
[308, 318, 333]
p02755
u711238850
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 collections import deque\ndef main():\n a,b = tuple([int(t)for t in input().split()])\n\n for i in range(1,100):\n a_tax = i * 108//100\n b_tax = i * 110/100\n\n if a == a_tax and b == b_tax:\n print(i)\n return\n\n print(-1)\n\nif __name__ == "__m...
['Wrong Answer', 'Accepted']
['s408080672', 's148384647']
[3444.0, 3444.0]
[24.0, 44.0]
[321, 322]
p02755
u712284046
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\nmin_A = math.ceil(A * 100 / 8)\nmax_A = ((A + 1) * 100 / 8\nmin_B = math.ceil(B * 100 / 10)\nmax_B = (B + 1) * 100 / 10\n\nif (min_A <= min_B and min_B < max_A):\n ans = min_B\nelif (min_B <= min_A and min_A < max_B):\n ans = min_A\nelse:\n ans = -1\n\nprint...
['Runtime Error', 'Accepted']
['s562452272', 's713684040']
[2940.0, 3064.0]
[18.0, 18.0]
[308, 306]
p02755
u713914478
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\nflag = 0\n\nfor i in range(1250):\n\tif i*0.08 == A and i*0.1 == B:\n\t\tprint(i)\n\t\tflag = 1\n\t\tbreak\n\nif flag == 0:\n\tprint(-1)\n', 'A,B = map(int,input().split())\n\nimport math\nflag = 0\n\nfor i in range(1250):\n\tif math.floor(i*0.08) == A and math.floor(i*0...
['Wrong Answer', 'Accepted']
['s901735324', 's027305316']
[3064.0, 2940.0]
[18.0, 17.0]
[164, 189]
p02755
u714732628
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\nl8 = []\nl10 = []\nfor i in range(100):\n p8 = (A+0.01*i)/0.08\n p10 = (B+0.01*i)/0.1\n if p8.is_integer():\n l8.append(p8)\n if p10.is_integer():\n l10.append(p10)\n\np = sorted(list(set(l8) & set(l10)))\nif p == []:\n print(-1)\nelse:\n print(p[0])', 'A, B = lis...
['Wrong Answer', 'Accepted']
['s570928176', 's246354577']
[3064.0, 3064.0]
[17.0, 18.0]
[288, 315]
p02755
u721970149
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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\ninput = sys.stdin.readline\nA, B = map(int, input().split())\n\nxmin = 1\nwhile :\n if int(0.08*xmin) == A and int(0.1*xmin) == B :\n print(int(xmin))\n exit()\n elif int(0.08*xmin) < A or int(0.1*xmin) < B :\n xmin += 1\n else :\n print(-1)\n exit()\n', 'import...
['Runtime Error', 'Accepted']
['s959717950', 's398494337']
[2940.0, 3060.0]
[17.0, 18.0]
[294, 299]
p02755
u723345499
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\nr = "-1"\nfor price in range(1010):\n tax_8 = int(price * 0.8)\n tax_10 = int(price * 0.1)\n if tax_8 == a and tax_10 == b :\n r = price\n braek\nprint(r)', 'a, b = map(int, input().split())\nr = -1\nfor price in range(1010):\n tax_8 = int(price * 0.8)\n ...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s068208222', 's345491920', 's652306897', 's965786370', 's920962558']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 18.0, 18.0, 18.0, 18.0]
[203, 202, 202, 204, 202]
p02755
u723583932
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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=0\nflag=False\nfor i in range(b*10,(b+1)*10+1):\n x=i*8\n if 100*(a+1>x>=100*a:\n flag=True\n ans=i\n break\nprint(ans if flag else -1)', 'a,b=map(int,input().split())\nans=0\nflag=False\nfor i in range(b*10,(b+1)*10):\n x=i*8\n if 100*(a+1)>x>=100*a:...
['Runtime Error', 'Accepted']
['s008062099', 's964248417']
[2940.0, 3060.0]
[17.0, 18.0]
[187, 186]
p02755
u725993280
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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())\n\nx = a/0.08\ny = b/0.10\n\nprint(x,y)\n\nif y * 0.08 == a:\n print(int(y))\nelif x * 0.1 < b:\n print("-1")\nelse:\n print(int(x))\n', 'a,b = map(float,input().split())\n\nx = a/0.08\ny = b/0.10\nprint(x,y)\nprint(int(x*0.10),int(x*0.08))\n\nif int(x * 0.1) == b and int(x *...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s209148305', 's662832884', 's775972522', 's460876580']
[2940.0, 3060.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0, 22.0]
[163, 292, 297, 158]
p02755
u726285999
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen 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 \npriceA1 = A / 0.08\npriceA2 = (A+1) / 0.08\npriceB1 = B / 0.10\npriceB2 = (B+1) / 0.10\n\nif priceA1 <= priceB1 < priceA2:\n print(int(priceB))\nelif priceB1 <= priceA1 < priceB2:\n print(int(priceA))\nelse:\n print(-1)', 'import math\n\nA, B = map(int, input().split())\n...
['Runtime Error', 'Accepted']
['s788328147', 's603484327']
[3060.0, 3064.0]
[19.0, 17.0]
[253, 627]
p02755
u727057618
2,000
1,048,576
Find the price of a product before tax such that, when the consumption tax rate is 8 percent and 10 percent, the amount of consumption tax levied on it is A yen and B yen, respectively. (Yen is the currency of Japan.) Here, the price before tax must be a positive integer, and the amount of consumption tax is rounded d...
['a, b = [int(i) for i in input().split()]\n\na_min = int(a / 0.08) + 1\na_max = int( (a+1) / 0.08)\n\nb_min = int(a / 0.10) + 1\nb_max = int( (a+1) / 0.10)\n\nif a_max < b_min:\n print(-1)\n exit()\n\nif b_min < a_max:\n print(-1)\n exit()\n \nif a_min < b_min:\n print(b_min)\nelse:\n print(a_min)', 'import mat...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s384292830', 's501409859', 's795867982', 's971656741', 's892503719']
[3064.0, 3064.0, 3188.0, 3064.0, 3060.0]
[19.0, 20.0, 19.0, 17.0, 18.0]
[285, 319, 295, 278, 322]