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 |
|---|---|---|---|---|---|---|---|---|---|---|
p02957 | u468693059 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['#!/bin/python3\n\na, b = input().split(" ")\n\nif a % 2 == b % 2:\n print((a + b) / 2)\nelse:\n print("IMPOSSIBLE")\n', '# -*- coding: utf-8 -*-\n\na, b = map(int, input().split(" "))\nif a % 2 == b % 2:\n print(int((a + b) / 2))\nelse:\n print("IMPOSSIBLE")\n'] | ['Runtime Error', 'Accepted'] | ['s028842824', 's445475588'] | [2940.0, 2940.0] | [17.0, 17.0] | [115, 138] |
p02957 | u469281291 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["int a=int(input())\nint b=int(input())\nif abs(a-b)%2==0:\n print(abs(a-b)/2)\nelse:\n print('IMPOSSIBLE')", "a,b=map(int,input().split())\nif (a+b)%2==0:\n print((a+b)//2)\n \nelse:\n print('IMPOSSIBLE')\n"] | ['Runtime Error', 'Accepted'] | ['s310150346', 's428085960'] | [2940.0, 2940.0] | [17.0, 17.0] | [103, 105] |
p02957 | u471499397 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a, b = input().split()\n\nif ((a + b) % 2) == 0:\n print((a + b) / 2)\nelse:\n print("IMPOSSIBLE")', 'a, b = int(input().split())\n\nif ((a + b) % 2) == 0:\n print((a + b) / 2)\nelse:\n print("IMPOSSIBLE")', 'a,b = map(int, input().split())\n\nk = (a + b) / 2\n\nif ((((a + b) % 2) == 0) and (a >= k) and (... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s051866756', 's111482363', 's229936742', 's419790793', 's725913736', 's913100243', 's425968784'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3068.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 19.0] | [99, 104, 146, 108, 97, 104, 189] |
p02957 | u472696272 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a, b = map(int, input().split())\n\nif abs(a-b)//2 == abs(a-b)/2:\n print(int(abs(a-b)/2))\nelse:\n print('IMPOSSIBLE')", "a,b = map(int,input().split())\nif (a+b)//2==(a+b)/2: print((a+b)//2)\nelse: print('IMPOSSIBLE')\n"] | ['Wrong Answer', 'Accepted'] | ['s576865248', 's402723793'] | [2940.0, 2940.0] | [17.0, 17.0] | [116, 95] |
p02957 | u474925961 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['\n \nimport sys\n\nif sys.platform ==\'ios\':\n\tsys.stdin=open(\'input_file.txt\')\n\t\na, b=map(int,imput().split()))\n\nif a/b==a//b:\n\tprint(a//b)\n\t\nelse:\n\tprint("IMPOSSIBLE")', '\n \nimport sys\n\nif sys.platform ==\'ios\':\n\tsys.stdin=open(\'input_file.txt\')\n\t\na, b=map(int,input().split())\n\ni... | ['Runtime Error', 'Accepted'] | ['s490260336', 's049267853'] | [2940.0, 2940.0] | [17.0, 17.0] | [166, 180] |
p02957 | u475991121 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a, b = map(int, input().split())\ndiff = b-a\nif diff < 0:\n diff = a-b\nif diff%2 == 0:\n print(diff//2)\nelse:\n print('IMPOSSIBLE')", "a, b = map(int, input().split())\nif b < a:\n a, b = b, a\ndiff = b-a\nif diff%2 == 0:\n print((a+b) // 2)\nelse:\n print('IMPOSSIBLE')"] | ['Wrong Answer', 'Accepted'] | ['s288148938', 's188869446'] | [2940.0, 3064.0] | [18.0, 17.0] | [136, 137] |
p02957 | u476562059 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a, b = map(int,input().split())\n\nans = "IMPOSSIBLE"\nif ((a+b)%2 == 0):\n ans = abs((a+b)/2)\nprint(ans)', 'a, b = map(int,input().split())\n\nans = "IMPOSSIBLE"\nif ((a+b)%2 == 0):\n ans = round((a+b)/2)\nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s263101375', 's769587969'] | [2940.0, 2940.0] | [17.0, 17.0] | [104, 106] |
p02957 | u477977638 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['A,B=map(int,input().split())\nif (A-B)%2==1:\n print("IMPOSSIBLE")\nelse:\n \tprint((A+B)/2)', 'A,B=map(int,input().split())\nif (A*B)%2==1:\n print(IMPOSSIBLE)\n else\n \tprint((A+B)/2)\n', 'A,B=map(int,input().split())\nif (A-B)%2==1:\n print("IMPOSSIBLE")\nelse:\n \tprint(int((A+B)/2))'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s816817082', 's971042057', 's286158375'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [91, 89, 96] |
p02957 | u480200603 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['# OLE?\na = input()\nprint(10 ** (10 ** (10 ** (10 ** (10 ** (10 ** 10))))))', '# OLE?\na = input()\nb = input()', 'a, b = map(int, input().split())\nif (a + b) % 2 == 0:\n print((a + b) // 2)\nelse:\n print("IMPOSSIBLE")'] | ['Time Limit Exceeded', 'Runtime Error', 'Accepted'] | ['s667228936', 's909274886', 's492806386'] | [9348.0, 2940.0, 3316.0] | [2104.0, 17.0, 20.0] | [74, 30, 107] |
p02957 | u480887263 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b=sorted(map(int,input().split()))\nprint((b-a)//2 if (b-a)%2==0 else "IMPOSSIBLE" )', 'a,b=sorted(map(int,input().split()))\nprint((b+a)//2 if (b+a)%2==0 else "IMPOSSIBLE" )'] | ['Wrong Answer', 'Accepted'] | ['s521958760', 's920745638'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 85] |
p02957 | u482157295 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b = map(int,input().split())\nnum = a - b\nif num < 0:\n num = -num\nif num % 2 == 0:\n print(num/2)\nelse:\n print("IMPOSSIBLE") ', 'import math\na,b = map(int,input().split())\nnum = a + b\nif num < 0:\n num = -num\nif num % 2 == 0:\n print(math.floor(num/2))\nelse:\n print("IMPOSSIBLE") '] | ['Wrong Answer', 'Accepted'] | ['s066928296', 's801830482'] | [3060.0, 2940.0] | [18.0, 17.0] | [128, 152] |
p02957 | u483873684 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b=input().split()\nk=(a+b)/2\ng=int(k)\nif(k==g):\n print(k)\nelse:\n print("IMPOSSIBLE")', 'l=list(map(int,input().rstrip().split()))\na=l[0]\nb=l[1]\nk=(a+b)/2\ng=int(k)\nif(k==g):\n print(k)\nelse:\n print("IMPOSSIBLE")', 'a,b=input().split()\nk=(a+b)/2\ng=(a+b)//2\nif(k==g):\n print(k)\nelse:\n ... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s457009066', 's754690718', 's864352796', 's014422750'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [91, 127, 93, 127] |
p02957 | u484578205 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['import math\na, b = [int(i) for i in input().split()]\nr = a - b\nif r % 2 is 0:\n print(abs(int(r / 2)))\nelse:\n print("IMPOSSIBLE")\n \n', 'import math\na, b = [int(i) for i in input().split()]\nr = a - b if a > b else b - a\nif r % 2 is 0:\n print(abs(int(r / 2)))\nelse:\n print("IMPOSSIBLE")', 'import math\... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s122431234', 's641872524', 's923140342', 's891762958'] | [2940.0, 2940.0, 2940.0, 3060.0] | [17.0, 18.0, 17.0, 17.0] | [134, 150, 176, 172] |
p02957 | u487288850 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a,b = map(int,input().split())\nif (b-a)%2==0:\n print((b-a)/2)\nelse:\n print('IMPOSSIBLE')", "a,b = map(int,input().split())\nif (b-a)%2==0:\n print(int((b-a)/2))\nelse:\n print('IMPOSSIBLE')", "a,b = map(int,input().split())\nif (b-a)%2==0:\n print(int((b+a)/2))\nelse:\n print('IMPOSSIBLE')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s563095491', 's729842973', 's574957665'] | [9108.0, 9160.0, 9108.0] | [25.0, 31.0, 27.0] | [90, 95, 95] |
p02957 | u488127128 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["N = int(input())\nps = list(map(int, input().split()))\n \ncount = 0\n \nfor p,n in zip(ps,range(N)):\n if p != n:\n count += 1\nif count == 2:\n print('YES')\nelse:\n print('NO')", "a,b = map(int, input().split())\n\nif (a+b) % 2 != 0:\n print('IMPOSSIBLE')\nelse:\n print((a+b)//2)"] | ['Runtime Error', 'Accepted'] | ['s506181389', 's226347074'] | [3060.0, 2940.0] | [17.0, 17.0] | [184, 101] |
p02957 | u488934106 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['def harmony(a, b):\n\n return "IMPOSSIBLE" if abs(a-b)%2 != 0 else int(abs(a-b)//2)\ndef main():\n a, b = map(int, input().split())\n print(harmony(a, b))\n\nif __name__ == \'__main__\':\n main()\n', 'def harmony(a, b):\n\n return "IMPOSSIBLE" if abs(a-b)%2 != 0 else int(abs(a-b)//2)+min(a,b)\ndef main... | ['Wrong Answer', 'Accepted'] | ['s658717249', 's899041615'] | [2940.0, 2940.0] | [18.0, 18.0] | [198, 207] |
p02957 | u489600973 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a,b = map(int,input().split())\n\nfrom sympy import *\n\nx = sympy.Symbol('x') \nf = 2*x -a-b \n\nsolutions=sympy.solve(f,x) \nprint(solutions)", "a,b = map(int,input().split())\n\nif (a+b)%2 == 0:\n print((a+b)//2)\nelse:\n print('IMPOSSIBLE')"] | ['Runtime Error', 'Accepted'] | ['s490731200', 's122248552'] | [2940.0, 2940.0] | [17.0, 17.0] | [210, 94] |
p02957 | u490084374 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a, b = map(int, input().split())\nif (a + b) % 2 == 0:\n print((a + b) / 2)\nelse:\n print('IMPOSSIBLE')", "a, b = map(int, input().split())\nif (a + b) % 2 == 0:\n print(int((a + b) / 2))\nelse:\n print('IMPOSSIBLE')"] | ['Wrong Answer', 'Accepted'] | ['s980602011', 's099396574'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 107] |
p02957 | u491462774 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a, b = map(int, input().split())\nprint((a + b)/ 2 if (a + b) % 2 == 0 else 'IMPOSSIBLE')", "a, b = map(int, input().split())\nprint((a + b) // 2 if (a + b) % 2 == 0 else 'IMPOSSIBLE')"] | ['Wrong Answer', 'Accepted'] | ['s383105950', 's927019775'] | [9096.0, 9100.0] | [24.0, 29.0] | [89, 91] |
p02957 | u492749916 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['import sys\nA, B = map(int, input().split())\ntmp = 0\n\nif (abs(A)-abs(B))%2 == 1:\n print("IMPOSSIBLE")\n sys.exit()\n\nif A < B:\n tmp = A\n A = B\n B = tmp\n\nif A > 0 and B > 0:\n K = (A+B)/2\nelif A < 0 and B < 0:\n K = -(abs(A)+abs(B))/2\nelse:\n K = A-(abs(A)+abs(B))/2\n\nprint(K)', 'import sys\nA, B ... | ['Wrong Answer', 'Accepted'] | ['s240299626', 's536963720'] | [3064.0, 3064.0] | [18.0, 18.0] | [277, 282] |
p02957 | u493407368 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["# -*- coding: utf-8 -*-\na, b = map(int, input().split())\n\nk = a+b\nif k%2==0:\n return k/2\nelse:\n print('IMPOSSIBLE')\n \n", "# -*- coding: utf-8 -*-\na, b = map(int, input().split())\n\nk = a+b\nif k%2==0:\n return k/2\nelse:\n return 'IMPOSSIBLE'\n \n", "# -*- coding: utf-8 -*-\na, b = map(int, i... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s294003952', 's714400919', 's967486728', 's795254337'] | [2940.0, 2940.0, 2940.0, 3064.0] | [18.0, 17.0, 17.0, 18.0] | [125, 125, 125, 126] |
p02957 | u493491792 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b=list(map(int,input().split()))\nc=a+b\nif (c)%2 !=0:\n print("IMPOSSIBLE")\nelse:\n print(c/2)', 'a,b=list(map(int,input().split()))\nc=a+b\nif (c)%2 !=0:\n print("IMPOSSIBLE")\nelse:\n print(c//2)'] | ['Wrong Answer', 'Accepted'] | ['s040398427', 's026959498'] | [2940.0, 2940.0] | [17.0, 17.0] | [99, 100] |
p02957 | u497046426 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A, B = map(int, input().split())\nprint('IMPOSSIBLE' if A%2 != B%2 else abs(B-A) // 2)", "A, B = map(int, input().split())\nprint('IMPOSSIBLE' if A%2 != B%2 else min(A, B) + abs(B-A) // 2)"] | ['Wrong Answer', 'Accepted'] | ['s701560453', 's685144600'] | [2940.0, 2940.0] | [17.0, 17.0] | [85, 97] |
p02957 | u500655940 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['A,B = map(int, input().split())\na = min(A,B)\nb = max(A,B)\nif (a+b) % 2 == 0:\n\tprint(int((b-a)/2))\nelse:\n\tprint("IMPOSSIBLE")\n', 'A,B = map(int, input().split())\na = min(A,B)\nb = max(A,B)\nif (a+b) % 2 == 0:\n\tprint(int((b-a)/2 + a))\nelse:\n\tprint("IMPOSSIBLE")\n'] | ['Wrong Answer', 'Accepted'] | ['s350997719', 's982163215'] | [3060.0, 2940.0] | [19.0, 17.0] | [125, 129] |
p02957 | u502200133 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['import math\na, b = map(int, input().split())\nif (b-a) % 2 == 0:\n print(floor((a+b) / 2))\nelse:\n print("IMPOSSIBLE")', 'a, b = map(int, input().split())\nif (b-a) % 2 == 0:\n print((a+b) / 2)\nelse:\n print("IMPOSSIBLE")', 'a, b = map(int, input().split())\nif (b-a) % 2 == 0:\n print((a+b) // 2)\ne... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s813753163', 's850333078', 's645145466'] | [3060.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [121, 102, 103] |
p02957 | u502450378 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["m, n = map(int, input.split())\ntotal = m + n\nif total % 2 == 0:\n print(total // 2)\nelse:\n print('IMPOSSIBLE')", "m, n = map(int, input().split())\ntotal = m + n\nif total % 2 == 0:\n print(total // 2)\nelse:\n print('IMPOSSIBLE')\n"] | ['Runtime Error', 'Accepted'] | ['s670022580', 's483023215'] | [8968.0, 9004.0] | [24.0, 28.0] | [111, 114] |
p02957 | u502967152 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b=map(int, input().split())\nif (a+b)%2==0:\n print(str((a+b)/2))\nelse:\n print("IMPOSSIBLE")', 'a,b=map(int, input().split())\nprint(str((a+b)/2))', 'a,b=map(int, input().split())\nif (a+b)%2==0:\n print(str((a+b)/2))\nelse:\n print("IMPOSSIBLE")', 'a,b=map(int, input().split())\nif (a+b)%2==0:\n print(str((... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s284087748', 's538749080', 's942831772', 's148036305'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [94, 49, 94, 95] |
p02957 | u505893372 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A,B = map(int, input().split())\n\nif (A+B)%2 == 0 :\n\tprint((A+B)/2)\nelse :\n\tprint('IMPOSSIBLE')", "A,B = map(int, input().split())\n\nif A%2 == 0 and B%2 == 0 :\n\tprint((A+B)/2)\nelse :\n\tprint('IMPOSSIBLE')", "A,B = map(int, input().split())\n\nif (A+B)%0 :\n\tprint((A+B)/2)\nelse :\n\tprint('IMPOSSIBLE')", ... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s121070657', 's467903685', 's713871037', 's868748481', 's905632176', 's436936731'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [94, 103, 89, 284, 94, 108] |
p02957 | u505962881 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a, b = map(int, input().split(" "))\nprint((a + b)/2) if (a + b) % 2 == 0 else print("IMPOSSIBLE")', 'a, b = map(int, input().split(" "))\nprint((a + b) // 2) if (a + b) % 2 == 0 else print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s649165097', 's763304382'] | [2940.0, 2940.0] | [17.0, 18.0] | [97, 100] |
p02957 | u506587641 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a, b = map(int, input().split())\n\nif a == b or ((a + b) % 2) == 1:\n print('IMPOSSIBLE')\n\nelse:\n print((a + b) / 2)\n", "a, b = map(int, input().split())\n\nif ((a + b) % 2) == 1:\n print('IMPOSSIBLE')\n\nelse:\n print((a + b) / 2)", "a, b = map(int, input().split())\n\nif ((a + b) % 2) == 1:\n pr... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s100040036', 's461652592', 's529663228'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [121, 110, 111] |
p02957 | u507113442 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b=map(int,input().split())\nk=(a+b)/2\nprint(k if ((a>=k and b<=k) or (a<=K and b>=k)) and k%2==0 else "IMPOSSIBLE")', 'a,b=map(int,input().split())\nprint((a+b)/2 if (a+b)%2==0 else "IMPOSSIBLE")', 'a,b=map(int,input().split())\nk=(a+b)//2\nprint(k if ((a>=k and b<=k) or (a<=K and b>=k)) and k%2==0 else "IMPOSSIBL... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s231073940', 's561421809', 's719956408', 's362696230'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 18.0] | [116, 75, 117, 76] |
p02957 | u507171466 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a, b = map(int, input().split())\nk = 1\nwhile True:\n if a - k == b - k:\n print(k)\n exit()\n if a < k or b < k:\n print('IMPOSSIBLE')\n exit()\n k += 1", "a, b = map(int, input().split())\nk = 1\n\nwhile True:\n if abs(a - k) == abs(b - k):\n print(k)\n exit()\n if a < k or b < k:\n print... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s594760830', 's753426370', 's682674365'] | [2940.0, 2940.0, 2940.0] | [2111.0, 2104.0, 17.0] | [160, 171, 103] |
p02957 | u507351902 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a, b = map(int, input().split())\n\ndef kansu_return_flag(a,b):\n \n flag = 0\n\n for i in range(10**9):\n a_ans = abs(a-i)\n b_ans = abs(b-i)\n if a_ans == b_ans:\n ans = i\n flag = 1\n break\n return flag\n\nflag = kansu_return_flag(a,b)\n\nif flag =... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s005009423', 's192249431', 's657131849', 's312207384'] | [3060.0, 3060.0, 3064.0, 3060.0] | [2104.0, 17.0, 2104.0, 17.0] | [350, 320, 451, 296] |
p02957 | u514136877 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['A, B = map(int, input().split())\n\nans = (A+B)/2\nif ans % int(ans) != 0:\n ans = "IMPOSSIBLE"\n\nprint(ans)', 'A, B = map(int, input().split())\n\nif (A+B)%2 == 0:\n print((A+B)//2)\nelse:\n print("IMPOSSIBLE")'] | ['Runtime Error', 'Accepted'] | ['s211457946', 's308727483'] | [2940.0, 2940.0] | [17.0, 19.0] | [106, 100] |
p02957 | u516554284 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b=map(int,input().split())\nc=a%2\nd=b%2\nif (c-d)==0:\n print((a+b)/2)\nelse:\n print("\'IMPOSSIBLE\'")\n', 'a,b=map(int,input().split())\nc=a%2\nd=b%2\nif (c-d)==0:\n print((a+b)/2)\nelse:\n print("IMPOSSIBLE")', 'a,b=map(int,input().split())\nc=a%2\nd=b%2\nif (c-d)==0:\n print(int((a+b)/2))\nelse:\n print(... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s092474654', 's386779412', 's947969268'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0] | [101, 98, 103] |
p02957 | u518987899 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A,B = map(int, input().strip().split(' '))\nif (A+B)%2 == 0:\n print((A+B)/2)\nelse:\n print('IMPOSSIBLE')", "A,B = map(int, input().strip().split(' '))\nif (A+B)%2 == 0:\n print((A+B)//2)\nelse:\n print('IMPOSSIBLE')\n"] | ['Wrong Answer', 'Accepted'] | ['s814965408', 's215139460'] | [2940.0, 2940.0] | [17.0, 19.0] | [104, 106] |
p02957 | u519721530 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A, B = map(int, input().split())\n\nif (A+B)%2 == 0:\n print( (A+B)/2 )\nelse:\n print('IMPOSSIBLE')", "A, B = map(int, input().split())\n\nif (A+B)%2 == 0:\n print( int((A+B)/2) )\nelse:\n print('IMPOSSIBLE')"] | ['Wrong Answer', 'Accepted'] | ['s454739774', 's470767694'] | [3060.0, 2940.0] | [17.0, 18.0] | [101, 106] |
p02957 | u521667517 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['L,R = map(int,input().split())\n\nans = (L+R)/2\n\nif ans.is_integer():\n return int(ans)\nelse:\n return "IMPOSSIBLE"', 'L,R = map(int,input().split())\n\nans = (L+R)/2\n\nif ans.is_integer():\n print(int(ans))\nelse:\n print("IMPOSSIBLE")'] | ['Runtime Error', 'Accepted'] | ['s701507223', 's607870235'] | [2940.0, 2940.0] | [17.0, 17.0] | [113, 113] |
p02957 | u523545435 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A,B=map(int,input().split())\n\nA,B=map(int,input().split())\n\nif (A+B)%2==0:\n print((A+B)//2)\nelse:\n print('IMPOSSIBLE')", "A,B=map(int,input().split())\n\nA,B=map(int,input().split())\n\nif (A+B)%2==0:\n print((A+B)/2)\nelse:\n print('impossible')", "A,B=map(int,input().split())\n\nif (A+B)%2==0:\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s703972378', 's712901899', 's276350368'] | [2940.0, 2940.0, 2940.0] | [40.0, 18.0, 17.0] | [124, 123, 94] |
p02957 | u523781418 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b = input().split()\na=int(a)\nb=int(b)\n\nif (a+b)%2 ==0:\n print(int(a+b)/2)\nelse:\n print("IMPOSSIBLE")', 'a,b = input().split()\na=int(a)\nb=int(b)\n\nif (a+b)%2 ==0:\n print(int((a+b)/2))\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s004806962', 's688769094'] | [2940.0, 2940.0] | [17.0, 17.0] | [108, 110] |
p02957 | u524489226 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a, b = map(int, input().split())\nk = (a**2 + b**2)/(2*a-2*b)\n\nif isinstance(k, float):\n print("IMPOSSIBLE")\nelse:\n print(k)', 'a, b = map(int, input().split())\nk = (a*a - b*b)/(2*a-2*b)\n\nif float.is_integer(k):\n print(k)\nelse:\n print("IMPOSSIBLE")', 'a, b = map(int, input().split())\nk = (a*a ... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s426119231', 's536870090', 's904200961'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [129, 126, 131] |
p02957 | u524765246 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['A,B = map(int,input().split())\n \nK=(A+B)/2\n \ndef is_integer_num(n):\n if isinstance(n, int):\n return True\n if isinstance(n, float):\n return n.is_integer()\n return False\n \nif is_integer_num(K)==False:\n print("IMPOSSIBLE")\nelse:\n print(K)', 'A=int(input())\nB=int(input())\n\nK=(A+B... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s206612480', 's409777504', 's469618281', 's979434113'] | [2940.0, 3060.0, 2940.0, 3060.0] | [17.0, 18.0, 17.0, 17.0] | [260, 254, 258, 265] |
p02957 | u525796732 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["import sys\nstdin = sys.stdin\n\nns = lambda: stdin.readline().rstrip()\nni = lambda: int(stdin.readline().rstrip())\nnm = lambda: map(int, stdin.readline().split())\nnl = lambda: list(map(int, stdin.readline().split()))\n\nS=list(ns())\nS.reverse()\n\nmodmap=[[0]*10 for i in range(10**5)]\nfor i in range(10):\n m... | ['Runtime Error', 'Accepted'] | ['s171843130', 's902546167'] | [19444.0, 3060.0] | [432.0, 17.0] | [932, 273] |
p02957 | u527261492 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a,b=map(int,input().split())\nif (a+b)%2==0:\n print((a+b)/2)\nelse:\n print('IMPOSSIBLE')", "a,b=map(int,input().split())\nif (a+b)%2==0:\n print((a+b)//2)\nelse:\n print('IMPOSSIBLE')\n"] | ['Wrong Answer', 'Accepted'] | ['s829153147', 's160041938'] | [2940.0, 2940.0] | [18.0, 17.0] | [88, 90] |
p02957 | u527652459 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b = map(int,input().split())\nn=a+b\nif n%2==0:print(n/2)\nelse:print("IMPOSSIBLE")', 'a,b = map(int,input().split())\nn=a+b\nif n%2==0:print(int(n/2))\nelse:print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s631405602', 's642158832'] | [9052.0, 9092.0] | [29.0, 27.0] | [82, 87] |
p02957 | u528087569 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a = [int(s) for s in input().split()]\np = (a[0] + a[1]) / 2\nif p == int(p):\n print(p)\nelse:\n print("IMPOSSIBLE")', 'a = [int(s) for s in input().split()]\np = (a[0] + a[1]) / 2\nif p == int(p):\n print(int(p))\nelse:\n print("IMPOSSIBLE")\n'] | ['Wrong Answer', 'Accepted'] | ['s347942099', 's075367437'] | [2940.0, 2940.0] | [17.0, 17.0] | [114, 120] |
p02957 | u529100021 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['N = int(input())\nA = list(int(x) for x in input().split())\nB = list(int(x) for x in input().split())\na = 0\nb = 0\nfor x in range(N):\n B[x] = B[x] + a\n if A[x] > B[x]:\n b = b + B[x]\n a = 0\n else:\n b = b + A[x]\n if A[x] > a:\n a = B[x] - A[x]\n else:\n ... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s295916920', 's859171120', 's936269716', 's297062752'] | [3064.0, 2940.0, 3064.0, 2940.0] | [18.0, 18.0, 17.0, 17.0] | [436, 127, 436, 132] |
p02957 | u531220228 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['# coding: utf-8\n\nA,B = map(int, input().split())\n\nif (A+B)%2 == 0:\n print((A+B)/2)\nelse:\n print("IMPOSSIBLE")', 'A, B = map(int, input().split())\n\nif (A + B) % 2 == 0:\n print(int((A + B) / 2))\n \nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s343610242', 's686237794'] | [2940.0, 3064.0] | [17.0, 17.0] | [111, 117] |
p02957 | u531599639 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a,b = map(int,input().split())\nif abs(a-b)%2==0:\n print(abs(a-b)//2)\nelse:\n print('IMPOSSIBLE')", "a,b = map(int,input().split())\nif abs(a-b)%2==0:\n print(abs(abs(a-b)//2-a))\nelse:\n print('IMPOSSIBLE')", "a,b = map(int,input().split())\nif abs(a-b)%2==0:\n print(max(a,b)-abs(a-b)//2)\nelse:\n print('IMP... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s505621522', 's619017790', 's599203531'] | [9152.0, 9128.0, 8988.0] | [30.0, 27.0, 27.0] | [97, 104, 106] |
p02957 | u532099150 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a, b=map(int, input().split())\nif abs(a+b)%2==0:\n print(abs(a+b)/2)\nelse:\n print("IMPOSSIBLE")\n\n', 'a, b=map(int, input().split())\nif (abs(a)+abs(b))%2 == 0:\n print(int((abs(a)+abs(b))/2))\nelse:\n print("IMPOSSIBLE")\n\n'] | ['Wrong Answer', 'Accepted'] | ['s504779518', 's603489463'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 123] |
p02957 | u533006396 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["x, y = map(int, input().split())\n\nif (x + y) % 2 == 0:\n print((x+y)/2)\nelse:\n print('IMPOSSIBLE')", "x, y = map(int, input().split())\n\nif (x + y) % 2 == 0:\n print(round((x+y)/2))\nelse:\n print('IMPOSSIBLE')\n"] | ['Wrong Answer', 'Accepted'] | ['s065565543', 's421599407'] | [2940.0, 2940.0] | [17.0, 17.0] | [103, 111] |
p02957 | u536685012 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["ab = int(input().split())\na = ab[1]\nb = ab[2]\n\nmid2 = a + b\nif mid2 % 2 == 0:\n mid = str(mid2 / 2)\n else:\n mid = 'IMPOSSIBLE'\n \nprint(mid) ", "ab = list(map(int, input().split()))\na = ab[0]\nb = ab[1]\n\nmid2 = a + b\n\nif mid2 % 2 == 0:\n mid = mid2 / 2\n else:\n mid = 'IMPOSSIBLE'\n ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s233458044', 's409525576', 's109333843'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [152, 155, 158] |
p02957 | u537905693 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["#!/usr/bin/env python\n# coding: utf-8\n\nfrom collections import namedtuple\n\ndef ri():\n return int(input())\n\ndef rl():\n return list(input().split())\n\ndef rli():\n return list(map(int, input().split()))\n\ndef dist(pf, pt):\n return abs(pf[0]-pt[0]) + abs(pf[1]-pt[1])\n\ndef print_ans(sx, sy, ans)... | ['Runtime Error', 'Accepted'] | ['s965675729', 's265741072'] | [3316.0, 2940.0] | [21.0, 17.0] | [1254, 331] |
p02957 | u540761833 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A,B = map(int,input().split())\nif (A+B)%2 == 0:\n pint(int((A+B)//2))\nelse:\n print(('IMPOSSIBLE')", "A,B = map(int,input().split())\nif (A+B)%2 == 0:\n pint(int((A+B)//2))\nelse:\n print('IMPOSSIBLE')", "A,B = map(int,input().split())\nif (A+B)%2 == 0:\n print(int((A+B)//2))\nelse:\n print('IMPOSSIBLE')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s085680144', 's487221745', 's893896365'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [98, 97, 98] |
p02957 | u540799318 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a , b = map(int, input().split())\nif (a+b)%2 == 0:\n print((a+b)/2)\nelse :\n print("IMPOSSIBLE")\n', 'a , b = map(int, input().split())\nif (a+b)%2 == 0:\n print(int((a+b)/2))\nelse :\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s915414890', 's108807056'] | [2940.0, 2940.0] | [18.0, 17.0] | [101, 105] |
p02957 | u541475502 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a, b = map(int, input().split())\nsub = (a+b)/2\nif sub % 1 != 0:\n print("IIMPOSSIBLE")\nelse:\n print(sub)', 'a, b = map(int, input().split())\nsub = (a+b)/2\nif sub % 1 != 0:\n print("IMPOSSIBLE")\nelse:\n print(int(sub))'] | ['Wrong Answer', 'Accepted'] | ['s583630638', 's633904232'] | [2940.0, 2940.0] | [20.0, 17.0] | [105, 109] |
p02957 | u546686251 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['A, B = map(int, input().split())\nfor K in range(10 ** 9):\n if abs(A - K) == abc(B - K):\n print(K)\n else:\n print("IMPOSSIBLE")', 'A, B = map(int, input().split())\nif (A + B) % 2 != 0:\n print("IMPOSSIBLE")\nelse:\n print((A + B) / 2)', 'A, B = map(int, input().split())\nif (A + B) % 2 !... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Time Limit Exceeded', 'Accepted'] | ['s125941963', 's398822608', 's412417911', 's519948009', 's135588249'] | [3064.0, 2940.0, 2940.0, 31164.0, 2940.0] | [17.0, 17.0, 17.0, 2104.0, 18.0] | [145, 106, 107, 146, 108] |
p02957 | u547483620 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["c,d = map(int,input().split())\n\nif (c+d)%2 == 0:\n print(c+d)//2\nelse:\n print('IMPOSSIBLE')", "c,d = map(int,input().split())\n\nif (c+d)%2 == 0:\n print((c+d)//2)\nelse:\n print('IMPOSSIBLE')"] | ['Runtime Error', 'Accepted'] | ['s642763314', 's661410844'] | [2940.0, 2940.0] | [18.0, 17.0] | [96, 98] |
p02957 | u547608423 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A,B = map(int,input().split())\nanswer=abs((A+B)/2)\n\nif A-B%2==0:\n print(answer)\nelse :\n print('imposible')", "A,B = map(int,input().split())\nanswer=abs((A+B)/2)\n\nif (A-B)%2==0:\n print(answer)\nelse :\n print('imposible')", "A,B = map(int,input().split())\nanswer=(A+B)/2\n\nif (A-B)%2==0:\n print(answer... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s011117388', 's744461957', 's861533519', 's566386479'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [108, 110, 105, 111] |
p02957 | u548076391 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b = list(map(int,input().split()))\nx = str((a+b)/2)\nlis = x.split(".")\nsyousuu = lis[1]\nif syousuu == "0":\n print(x)\nelse:\n print("IMPOSSIBLE")\n ', 'a,b = list(map(int,input().split()))\nx = str((a+b)/2)\nlis = x.split(".")\nsyousuu = lis[1]\nif syousuu == "0":\n print(lis[0])\nelse:\n print("IMPOSSIBL... | ['Wrong Answer', 'Accepted'] | ['s773821782', 's668175836'] | [2940.0, 2940.0] | [17.0, 17.0] | [150, 155] |
p02957 | u548684908 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["import numpy as np\ns = list(input())\nif np.sum(s) % 2 != 0:\n print('IMPOSSIBLE')\nprint(np.sum(s) % 2)", 's = list(input())\nprint(s)', "x,y = map(int,input().split())\nif (x+y) % 2 != 0:\n print('IMPOSSIBLE')\nelse:\n\tprint(int((x+y) / 2))"] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s172745672', 's321697950', 's579669893'] | [12392.0, 2940.0, 2940.0] | [153.0, 17.0, 17.0] | [104, 26, 102] |
p02957 | u550535134 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['A, B = map(int, input().split())\nprint((A+B)//2 if (A+B)% == 0 else "IMPOSSIBLE")', 'A, B = map(int, input().split())\nprint((A+B)//2 if (A+B)% 2 == 0 else "IMPOSSIBLE")\n'] | ['Runtime Error', 'Accepted'] | ['s575098005', 's863356700'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 84] |
p02957 | u551692187 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A,B = map(int, input().split())\n\nprint(abs(A-B)//2) if (A+B)%2 == 0 else print('IMPOSSIBLE')", "A,B = map(int, input().split())\n\nprint((A+B)//2) if (A+B)%2 == 0 else print('IMPOSSIBLE')"] | ['Wrong Answer', 'Accepted'] | ['s963995366', 's001409081'] | [2940.0, 2940.0] | [17.0, 17.0] | [92, 89] |
p02957 | u553070631 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a, b = map(int,input().split())\n\nif((a+b)%2)==0:\n\tprint (((a+b)/2))\nelse:\n\tprint('IMPOSSIBLE')", 'a, b = map(int,input().split())\n\nprint((a+b)/2)', "a, b = map(int,input().split())\n\nif((a+b)%2)==0:\n\tprint (int((a+b)/2))\nelse:\n\tprint('IMPOSSIBLE')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s112507827', 's549219083', 's936778049'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [94, 47, 97] |
p02957 | u555688810 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['x,y = map(int,input().split())\n\nave = abs(x + y) / 2\n\nif int(ave - int(ave) * 10) == 0:\n print(int(ave))\n exit()\nprint("IMPOSSIBLE")', 'x,y = map(int,input().split())\n\nave = (x + y) / 2\n\nif int(ave - int(ave) * 10) == 0:\n print(int(ave))\n exit()\nprint("IMPOSSIBLE")', 'x,y = map(int,input().split())\... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s121169281', 's997514689', 's858863217'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [134, 131, 136] |
p02957 | u556225812 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a, b = map(int, input().split())\nif a+b % 2 == 0:\n print((a+b)/2)\nelse:\n print('IMPOSSIBLE')\n", "a, b = map(int, input().split())\nif a+b % 2 == 0:\n print(int((a+b)/2))\nelse:\n print('IMPOSSIBLE')", "a, b = map(int, input().split())\nc = a + b\nif c % 2 == 0:\n print(c/2)\nelse:\n print('IMPO... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s198785229', 's630443093', 's684394327', 's035148266'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 18.0] | [99, 103, 102, 107] |
p02957 | u556371693 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a, b = map(int, input().split())\nif a+b%2==0:\n print((a+b)/2)\nelse:\n print("IMPOSSIBLE")', 'a, b = map(int, input().split())\nif (a+b)%2==0:\n print((a+b)/2)\nelse:\n print("IMPOSSIBLE")', 'a, b = map(int, input().split())\nif (a+b)%2==0:\n print((a+b)//2)\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s215504208', 's788798120', 's716182351'] | [2940.0, 2940.0, 2940.0] | [19.0, 17.0, 17.0] | [94, 96, 97] |
p02957 | u556594202 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['N=int(input())\n\nstep = sum([90*100**i for i in range(len(str(N))//2)])\ndance_floor = sum([9*100**i for i in range(len(str(N))//2)])\n\nans = len(str(N))%2 * (N-step) + -1*(len(str(N))%2-1) * dance_floor\nprint(ans)\n', 'A,B = map(int,input().split())\nprint("IMPOSSIBLE" if (A+B)%2!=0 else int((A+B)/2))\n'] | ['Runtime Error', 'Accepted'] | ['s592675708', 's730382532'] | [9184.0, 9032.0] | [25.0, 23.0] | [214, 83] |
p02957 | u557136512 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A, B = list(map(int, input().split()))\n\nif A%2 != B%2:\n print('IMPOSSIBLE')\nelse:\n print('(A+B)//2')", "A, B = list(map(int, input().split()))\n\nif A%2 != B%2:\n print('IMPOSSIBLE')\nelse:\n print((A+B)/2)", "A, B = list(map(int, input().split()))\nC = min(A, B)\nfor i in range(C):\n if abs(A-i) == abs(B-i... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s056437364', 's317945098', 's637456949', 's981138074', 's029657478'] | [2940.0, 2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 18.0, 2104.0, 2104.0, 17.0] | [102, 99, 139, 139, 104] |
p02957 | u558059388 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A,B=(int(x) for x in input().split())\nA!=B\n\nif abs(A-K)==abs(B-K):\n print(K)\nelse:\n print('IMPOSSIBLE')", "A,B=(int(x) for x in input().split())\nK=(A+B)/2\nif abs(A-K) == abs(B-K):\n print(K)\nelse:\n print('IMPOSSIBLE')", "A,B=(int(x) for x in input().split())\nA!=B\n\nif (A+B)%2==0:\n print((A... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s551352203', 's610706966', 's851208742', 's628184375'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0, 17.0] | [109, 115, 107, 116] |
p02957 | u558452954 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['A,B=int(input()).split()\ndef asf(A,B):\n same_num=(A+B)/2\n k=same_num-min(A,B)\n return k\nprint(asf(A,B))', 'A,B=map(int,input().split())\ndef asf(A,B):\n same_num=(A+B)/2\n if same_num%1==0:\n \tk=same_num-min(A,B)\n \treturn int(k)\n else:\n return "IMPOSSIBLE"\nprint(asf(A,B))', 'A,B=map(int,input().... | ['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s138758631', 's878075401', 's901119241', 's553067307'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0, 17.0] | [106, 169, 156, 153] |
p02957 | u558493745 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['A, B = map( int, input().split())\n\nprint((A+B)/2 if (A+B)%2==0 else "IMPOSSIBLE") ', 'A, B = map( int, input().split())\n\nprint((A+B)//2 if (A+B)%2==0 else "IMPOSSIBLE") '] | ['Wrong Answer', 'Accepted'] | ['s907485380', 's812111084'] | [2940.0, 2940.0] | [17.0, 17.0] | [82, 83] |
p02957 | u558782626 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a, b = map(int, input())\nprint((a+b)//2 if not (a+b)%2 else "IMPOSSIBLE")', 'a, b = map(int, input().split())\nprint((a+b)//2 if not (a+b)%2 else "IMPOSSIBLE")'] | ['Runtime Error', 'Accepted'] | ['s192985826', 's455554526'] | [2940.0, 2940.0] | [17.0, 17.0] | [73, 81] |
p02957 | u560988566 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b = map(int, input().split())\n\nans = 0\n\nif a%2 == b%2:\n ans = (a+b)/2\nelse:\n ans = "IMPOSSIBLE"\nprint(ans)', 'a,b = map(int, input().split())\n\nans = 0\n\nif a%2 == b%2:\n ans = int((a+b)/2)\nelse:\n ans = "IMPOSSIBLE"\n \nprint(ans)'] | ['Wrong Answer', 'Accepted'] | ['s547226341', 's451750689'] | [2940.0, 2940.0] | [17.0, 17.0] | [110, 118] |
p02957 | u562015767 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['N = int(input())\nA = list(map(int,input().split()))\ncnt = 0\n\nfor i in range(N-1):\n if A[i]+1 != A[i+1]:\n cnt += 1\n\nif cnt <= 2:\n print("YES")\nelif cnt > 3:\n print("NO")', 'A,B = map(int,input().split())\nN = A+B\n\nif N % 2 == 0:\n print((A+B)//2)\nelif N % 2 != 0:\n print("IMPOSSIBLE... | ['Runtime Error', 'Accepted'] | ['s796918434', 's799365635'] | [2940.0, 2940.0] | [17.0, 17.0] | [184, 115] |
p02957 | u562550538 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b = map(int,input().split())\ns=a+b\nif s%2 != 0:\n\tprint("IMPOSSIBLE")\nelse:\n\tprint(s/2)\n\t\n', 'a,b = map(int,input().split())\ns=a+b\nif s%2 != 0:\n\tprint("IMPOSSIBLE")\nelse:\n\tprint(s//2)\n\t'] | ['Wrong Answer', 'Accepted'] | ['s319625248', 's004980014'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 91] |
p02957 | u564657854 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['A,B = map(int,input().split())\nK = (A+B)/2\njudge = isinstance(K, float)\nif judge:\n print("IMPOSSIBLE")', 'A,B = map(int,input().split())\nK = (A+B)/2\njudge = isinstance(K, float)\nif judge:\n print("IMPOSSIBLE")\nelse:\n print((A+B)//2)', 'A,B = map(int,input().split())\nK = (A+B)/2\nif == isinstance(K,float)... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s140615388', 's269244276', 's380458589', 's674428086', 's944816850', 's732514566'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [103, 127, 91, 120, 85, 93] |
p02957 | u565924121 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['A,B = map(int,input().split())\n\nif (B%2!=A%2):\n print("IMPOSSIBLE")\n \nelse:\n print((B-A)//2)', 'A,B = map(int,input().split())\nN=0\n\nif(B-A)%2=1:\n print("IMPOSSIBLE")\n \nelse:\n print((B-A)//2)', 'A,B = map(int,input().split())\n\nif B%2!=A%2:\n print("IMPOSSIBLE")\n \nelse:\n print((B-A)//2)', 'A,... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s050759668', 's489924638', 's507587662', 's508423622', 's571551810', 's617468332', 's835600648', 's838268343', 's003782444'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [95, 97, 93, 94, 94, 95, 92, 92, 95] |
p02957 | u566297428 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A, B = map(int(input()))\nif (A+B) % 2 == 0:\n print((A+B)//2)\nelse:\n print('IMPOSSIBLE')", "A, B = int(input())\nif (A+B) % 2 == 0:\n print((A+B)//2)\nelse:\n print('IMPOSSIBLE')", "A, B = map(int,input().split())\nif (A+B) % 2 == 0:\n print((A+B)//2)\nelse:\n print('IMPOSSIBLE')"] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s004066743', 's520580640', 's098842114'] | [9156.0, 9116.0, 9112.0] | [21.0, 21.0, 25.0] | [89, 84, 100] |
p02957 | u566574814 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a,b = map(int, input().split())\nif a % 2 == b % 2:\n print((a + b // 2))\nelse:\n print('IMPOSSIBLE')", "a,b = map(int, input().split())\nif a % 2 == b % 2:\n print((a + b) // 2)\nelse:\n print('IMPOSSIBLE')"] | ['Wrong Answer', 'Accepted'] | ['s111893447', 's559227527'] | [2940.0, 2940.0] | [17.0, 76.0] | [100, 100] |
p02957 | u569776981 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a, b = map(int,input().split())\nx = a + b\nif x % 2 == 0:\n print(x / 2)\nelse:\n print('IMPOSSIBLE')", "a, b = map(int,input().split())\nx = a + b\nif x % 2 == 0:\n print(s / 2)\nelse:\n print('IMPOSSIBLE')", "a, b = map(int,input().split())\nx = a + b\nif x % 2 == 0:\n print(x // 2)\nelse:\n prin... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s070639390', 's969784951', 's904310641'] | [9116.0, 9136.0, 9104.0] | [26.0, 26.0, 24.0] | [103, 103, 104] |
p02957 | u571199625 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a, b = map(int,input().split())\nc = a+b\n\nif c%2==0:\n print(c/2-1)\nelse:\n print('IMPOSSIBLE')", "a, b = map(int,input().split())\nc = a+b\n\nif c%2==0:\n print(c/2)\nelse:\n print('IMPOSSIBLE')", "a, b = map(int,input().split())\nc = a+b\n\nif c%2==0:\n print(c/2)\nelse:\n print('IMPOSSIBLE')", "a, b = map... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s125822242', 's580449978', 's833384516', 's760436563'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [94, 92, 92, 97] |
p02957 | u571445182 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['Tmp = []\nTmp = input().rstrip().split(\' \')\n\nnA = int(Tmp[0])\nnB = int(Tmp[1])\n\nnAns = nA + nB\n\nnTmp = nAns % 2\n\nif nTmp == 1:\n print("IMPOSSIBLE")\nelse:\n nAns /= 2\n print(nAns)\n\n\n', 'Tmp = []\nTmp = input().rstrip().split(\' \')\n \nnA = int(Tmp[0])\nnB = int(Tmp[1])\n \nnAns = nA + nB\n \nnTmp ... | ['Wrong Answer', 'Accepted'] | ['s249645939', 's117121194'] | [2940.0, 2940.0] | [17.0, 17.0] | [182, 194] |
p02957 | u571969099 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b=[int(i) for i in input().split()]\na,b=min(a,b),max(a,b)\nc=b-a\nif c%2==0:\n print(c//2)\nelse:\n print("IMPOSSIBLE")\n', 'a,b=[int(i) for i in inpput().split()]\na,b=min(a,b),max(a,b)\nc=b-a\nif c%2==0:\n print(c//2)\nelse:\n print("IMPOSSIBLE")', 'a,b=[int(i) for i in input().split()]\na,b=min(a,b),max(a,b... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s495774713', 's561252461', 's883241773'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [119, 119, 119] |
p02957 | u573754721 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a,b=map(int,input().split())\nprint((a+b)/2 if (a+b)%2==0 else 'IMPOSSIBLE')", "a,b=map(int,input().split())\nprint('IMPOSSIBLE' if (a+b)%2 != 0 else (a+b)/2)", "a,b=map(int,input().split())\nprint((a+b)//2 if (a+b)%2==0 else 'IMPOSSIBLE')"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s654197952', 's827756921', 's401073111'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [75, 77, 76] |
p02957 | u573900545 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A, B = map(int, input().split())\nif abs(A - B) % 2 == 1:\n print('IMPOSSIBLE')\nelse:\n print((A + B) / 2)", "A, B = map(int, input().split())\nif abs(A - B) % 2 == 1:\n print('IMPOSSIBLE')\nelse:\n print(int((A + B) / 2))"] | ['Wrong Answer', 'Accepted'] | ['s940290639', 's076092915'] | [9160.0, 9056.0] | [29.0, 26.0] | [109, 114] |
p02957 | u577138895 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A, B = list(map(int, input().split()))\n\nif (A + B) % 2 == 0:\n print((A + B) / 2)\nelse:\n print('IMPOSSIBLE')", "A, B = list(map(int, input().split()))\n\nif (A + B) % 2 == 0:\n print(int((A + B) / 2))\nelse:\n print('IMPOSSIBLE')"] | ['Wrong Answer', 'Accepted'] | ['s137490000', 's113264461'] | [2940.0, 2940.0] | [17.0, 17.0] | [109, 114] |
p02957 | u578489732 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["import sys\n# ----------------------------------------------------------------\n# Use Solve Function\n\ndef solve(lines):\n A,B = map(int, lines.pop(0).split(' '))\n c = abs(A-B)\n\n if ( c % 2 == 0 ):\n print(c//2)\n else:\n print('IMPOSSIBLE')\n \nlines = [x.strip() for x in sys.std... | ['Wrong Answer', 'Accepted'] | ['s602975220', 's090029914'] | [3060.0, 3060.0] | [18.0, 18.0] | [349, 341] |
p02957 | u580093517 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b = map(int,input().split())\nprint(a+b//2 if a+b//2 == 0 or a == b else "IMPOSSIBLE")', 'a,b = map(int,input().split())\nprint((a+b)//2 if (a+b)%2 == 0 or a == b else "IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s472030963', 's393720598'] | [2940.0, 2940.0] | [17.0, 17.0] | [87, 90] |
p02957 | u580236524 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["A,B = [int(i) for i in input().split(' ')]\n\n0<=A\nB<=10**9\n\nif int((A+B)/2):\n print((A+B)/2)\nelse:\n print('IMPOSSIBLE')", "A,B = [int(i) for i in input().split(' ')]\n\n0<=A\nB<=10**9\n\nif (A%2==0) AND (B%2==0):\n print((A+B)/2)\nelif (A%2 !=0) AND (B%2 !=0):\n print((A+B)/2)\nelse:\n print('IMPOSSIBLE')... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s086631223', 's479376104', 's590072322', 's831479311', 's979424399', 's930405850'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0, 17.0, 18.0, 17.0] | [120, 176, 152, 120, 168, 121] |
p02957 | u581187895 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a, b = map(int, input().split())\n\nif a == 0 or b == 0:\n print("IMPOSSIBLE")\nelse:\n ans = (a+b)/2\n print(ans)', 'a, b = map(int, input().split())\n\nif (a+b)%2 != 0:\n print("IMPOSSIBLE")\nelse:\n print((a+b)/2)\n', 'a, b = map(int, input().split())\n\nif (a+b)%2 == 0:\n print((a+b)//2)\nelse:\n print("IM... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s834953458', 's921912078', 's610263109'] | [2940.0, 2940.0, 3316.0] | [19.0, 17.0, 20.0] | [111, 96, 96] |
p02957 | u588558668 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b=map(int,rnput().split())\na+b=c\nif c%2==1:\n print("IMPOSSIBLE")\nelse:\n print(c//2)\n', 'a,b=map(int,rnput().split())\nif (a+b)%2==1:\n print("IMPOSSIBLE")\nelse:\n print((a+b)//2)', 'a,b=map(int,input().split())\nif (a+b)%2==1:\n print("IMPOSSIBLE")\nelse:\n print((a+b)//2)\n'] | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s555258622', 's877562954', 's043830170'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [88, 89, 90] |
p02957 | u589432040 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['A, B = map(int, input().split())\nK = (A**2 - B**2) / (2*(A-B))\n\nif round(K,0) == K:\n print(K)\nelse:\n print("IMPOSSIBLE")', 'A, B = map(int, input().split())\nK = (A**2 - B**2) / (2*(A-B))\n\nif round(K,0) == K:\n print(int(K))\nelse:\n print("IMPOSSIBLE")\n'] | ['Wrong Answer', 'Accepted'] | ['s010165357', 's036260995'] | [3064.0, 2940.0] | [17.0, 17.0] | [122, 128] |
p02957 | u590116031 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['import sys\ninput = sys.stdin.readline\n\na,b = map(int, input().split())\n\nk2 = a+b\nif k2 % 2 != 0:\n print("IMPOSSIBLE")\nelse:\n print(k2/2)', 'import sys\ninput = sys.stdin.readline\n\na,b = map(int, input().split())\n\nk2 = a+b\nk = k2 / 2\nif k2 % 2 != 0:\n print("IMPOSSIBLE")\nelse:\n print(k)\n', 'impor... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s025805082', 's568636150', 's601840831'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [138, 147, 144] |
p02957 | u591016708 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['A, B = map(int, input().split())\nfor x in range(A, B):\n if (A - x)**2 == (B - x)**2:\n print(x)\n break\n else:\n print("IMPOSSIBLE")\n break', 'A, B = map(int, input().split())\nif (A + B) % 2 == 0:\n print((A+B)//2)\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s716745570', 's603742580'] | [2940.0, 2940.0] | [17.0, 17.0] | [170, 103] |
p02957 | u591287669 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b = map(int,input().split())\nif (a-b)%2 == 0:\n print((a+b)/2)\nelse:\n print("IMPOSSIBLE")', 'a,b = map(int,input().split())\nif (a-b)%2 == 0:\n print((a+b)//2)\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s312131389', 's642195203'] | [2940.0, 2940.0] | [17.0, 17.0] | [96, 97] |
p02957 | u593019570 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a,b = map(int,input().split())\n\nif a % 2 == 0 and b % 2 != 0:\n\tprint('Impossible')\n exit()\nif a % 2 != 0 and b % 2 == 0:\n \tprint('Impossible')\n exit()\nprint((a + b) // 2)", "a,b = map(int,input().split())\n\nif a % 2 == 0 and b % 2 != 0:\n\tprint('IMPOSSIBLE')\n\texit()\nif a % 2 != 0 and b % 2 == 0:... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s444407806', 's792296736', 's280525027'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [177, 172, 106] |
p02957 | u597455618 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['n = int(input())\np = list(map(int, input().split()))\ncnt = 0\ncheck = 0\ntmp = 0\nfor i in range(n-1):\n if p[i+1] - p[i] == 1:\n cnt += 1\n else:\n if check == 0:\n tmp = i + 2\n check += 1\n else :\n if tmp == p[i+1]:\n check += 1\n else :\n cnt += 1\n\nif cnt == n-1 o... | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s589346953', 's706768727', 's531332953'] | [3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [351, 105, 107] |
p02957 | u597622207 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ['a,b = map(int, input().split())\n \nif (a + b) % 2 != 0:\n print("IMPOSSIBLE")\nelse:\n print(abs(a-b)//2)', 'a,b = map(int, input().split())\n \nif (a + b) % 2 != 0:\n print("IMPOSSIBLE")\nelif b > a :\n print(abs(a-b)//2)\nelse:\n print(abs(a+b)//2)', 'a,b = map(int, input().split())\n\nif (a + b) % ... | ['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s180732172', 's419526344', 's430614807', 's492757501'] | [2940.0, 2940.0, 2940.0, 3064.0] | [17.0, 17.0, 17.0, 17.0] | [107, 143, 117, 107] |
p02957 | u598229387 | 2,000 | 1,048,576 | We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead. | ["a, b = map(int, input().split())\nif (a + b) % 2 != 0:\n print('IMPOSSIBLE')\nelse:\n print((a+b)/2)", "a, b = map(int, input().split())\nif (a + b) % 2 == 0:\n print(int((a+b)/2))\nelse:\n print('IMPOSSIBLE')"] | ['Wrong Answer', 'Accepted'] | ['s201538668', 's150212738'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 107] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.