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 | u600261652 | 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")', 'A, B = map(int, input().split())\nprint((A+B)//2 if (A+B)%2 == 0 else "IMPOSSIBLE")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s678337755', 's984598689', 's465686455'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 18.0] | [83, 84, 82] |
p02957 | u600717568 | 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\nif (A+B)%2==0:\n print(K)\nelse: print("IMPOSSIBLE")\n ', 'A,B=map(int,input().split())\nK=int((A+B)/2)\nif (A+B)%2==0:\n print(K)\nelse: print("IMPOSSIBLE")\n '] | ['Wrong Answer', 'Accepted'] | ['s426734674', 's527535413'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 102] |
p02957 | u601082779 | 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=eval(input().replace(' ','+'));print(a%2*'IMPOSSIBLE'or a/2)", 'a,b=map(int,input().split());print({a/2+b/2,"IMPOSSIBLE"}[(a+b)%2])', "a=sum(input().split());print(a%2*'IMPOSSIBLE'or a//2)", "a=sum(map(int,input().split()));print(a%2*'IMPOSSIBLE'or a//2)\n"] | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s035147246', 's710918411', 's719652634', 's059191532'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [62, 67, 53, 63] |
p02957 | u601235270 | 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\ni = (A+B)/2 \n\nif i % 1 ==0:\n print(i)\nelse:\n print('IMPOSSIBLE')", "A,B = map(int, input().split())\n\ni = (A+B)/2 \n\nif i % 1 ==0:\n print(int(i))\nelse:\n print('IMPOSSIBLE')"] | ['Wrong Answer', 'Accepted'] | ['s459955444', 's868719262'] | [2940.0, 3060.0] | [17.0, 18.0] | [103, 108] |
p02957 | u603324902 | 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\nfor i in range(10**9+1):\n if abs(a-i) == abs(b-i):\n print(i)\n break\n elif a<i or b<i and abs(a-i) != abs(b-i):\n print('IMPOSSIBLE')\n break\n", "a, b = map(int,input().split())\nx = (a+b)%2\nif x == 0:\n print((a+b)//2)\nelse... | ['Wrong Answer', 'Accepted'] | ['s817799665', 's872756696'] | [2940.0, 2940.0] | [2104.0, 17.0] | [222, 109] |
p02957 | u604655161 | 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 ABC_135_A():\n A,B = map(int, input().split())\n\n if (A+B)/%2 == 0:\n print(int((A+B)/2))\n else:\n print('IMPOSSIBLE')\n\nif __name__ == '__main__':\n\n ABC_135_A()", "def ABC_135_A():\n A,B = map(int, input().split())\n\n if (A+B)%2 == 0:\n print(int((A+B)/2))\n else:\... | ['Runtime Error', 'Accepted'] | ['s480308097', 's088833944'] | [2940.0, 2940.0] | [17.0, 17.0] | [186, 185] |
p02957 | u605748139 | 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(int((A+B)/2))\nelse:\n print('IMPOS... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s107028735', 's305142004', 's214832038'] | [2940.0, 2940.0, 3064.0] | [17.0, 17.0, 17.0] | [100, 100, 105] |
p02957 | u607135645 | 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 ans = (a + b) / 2\n print(ans)', 'a,b = map(int,input().split())\nif((a + b) % 2 == 1):\n print("IMPOSSIBLE")\nelse:\n ans = (a + b) // 2\n print(ans)'] | ['Wrong Answer', 'Accepted'] | ['s771749388', 's588813785'] | [2940.0, 2940.0] | [17.0, 17.0] | [119, 120] |
p02957 | u607729897 | 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())\nC = A + B\nif C %2 == 0:\n print(C//2)\nelse:\n print('IMPOSSIBLE')\n", "A, B = map(int, input().split())\nC = A + B\nif C %2 == 0:\n print(C//2)\nelse:\n print('IMPOSSIBLE')\n"] | ['Runtime Error', 'Accepted'] | ['s783214006', 's087804425'] | [2940.0, 2940.0] | [17.0, 17.0] | [91, 99] |
p02957 | u608178601 | 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+B)%2==0:\n\tprint(int((A+B)/2))\nelse:\n\tprint("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s538770473', 's534596146'] | [9024.0, 8820.0] | [30.0, 25.0] | [88, 93] |
p02957 | u608579392 | 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\n\nN = int(input())\np = [int(x) for x in input().split(" ")]\n\nsorted_p = sorted(p)\ncount = 0\nfor i in range(N):\n if sorted_p[i] != p[i]: count += 1\n\nif count == 0 or count == 2:\n print("YES")\nelse:\n print("NO")', 'N = int(input())\nA = [int(x) for x in input().split(" ")]\nB = [... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s672723628', 's697103402', 's520508145'] | [12388.0, 3064.0, 21308.0] | [157.0, 17.0, 318.0] | [236, 340, 135] |
p02957 | u609814378 | 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\n\nif (a+b) % 2 == 0:\n print(int((a+b/2)))\nelse:\n print("IMPOSSIBLE")', "a,b = map(int,input().split())\n\n\nif (a+b) % 2 == 0:\n print(int((a+b//2)))\nelse:\n print('IMPOSSIBLE')", 'a,b = map(int,input().split())\n\nZ = (a+b)%2\n\nif Z==0:\n print(Z)\nelse:\n pri... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s005631090', 's185443447', 's197462984', 's418262519', 's688908909', 's797052628', 's863910318', 's831268658'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 19.0, 17.0, 18.0] | [105, 106, 96, 100, 101, 107, 756, 102] |
p02957 | u609968450 | 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 k = (a+b)/2:\n print(k)\nelse:\n print('impossible')", "a, b = map(int, input().split())\nif (a+b)% == 0:\n print((a+b)//2)\nelse:\n print('IMPOSSIBLE')\n", "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().... | ['Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s022039184', 's449687486', 's681825161', 's906774359', 's361920426'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [78, 95, 95, 93, 96] |
p02957 | u614320306 | 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()) \nc = abs(a-b)\nif c % 2 == 0:\n print(c//2)\nelse:\n print("IMPOSSIBLE")', 'a, b = (int(i) for i in input().split()) \nc = abs(a+b)\nif c % 2 == 0:\n print(c//2)\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s293409964', 's833068521'] | [2940.0, 2940.0] | [17.0, 17.0] | [112, 112] |
p02957 | u617659131 | 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((a+b) // 2)\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s533830617', 's714615719'] | [2940.0, 2940.0] | [17.0, 18.0] | [97, 98] |
p02957 | u618303744 | 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())\nval=(a+b)/2\nif(val*2==a+b):\n print(val)\nelse:\n print("IMPOSSIBLE")', 'a,b=map(int,input().split())\nval=(a+b)//2\nif(val*2==a+b):\n print(val)\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s621825617', 's319912783'] | [2940.0, 2940.0] | [17.0, 17.0] | [97, 98] |
p02957 | u620846115 | 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((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)\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s291184434', 's651663310', 's782673674'] | [9160.0, 9100.0, 9080.0] | [27.0, 29.0, 30.0] | [89, 89, 90] |
p02957 | u623687794 | 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. | ['s=input()\nl=len(s);mod=10**9+7\ndp=[[0]*13 for i in range(l)]\nrem=[1,10,9,12,3,4]\nfor i in range(l)[::-1]:\n dig=i%6\n if s[i]=="?":\n if i==l-1:\n for j in range(10):\n dp[-1][(j*rem[dig])%13]=1\n else:\n for j in range(10):\n for h in range(13):\n dp[i][(h+j*rem[dig])%13]... | ['Runtime Error', 'Accepted'] | ['s858622957', 's425505343'] | [3188.0, 3060.0] | [17.0, 17.0] | [563, 108] |
p02957 | u623953567 | 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 == 0:\n print(abs(a-b)/2)\nelse:\n print('IMPOSSIBLE')\n", "a,b = map(int,input().split())\n\nif abs(a-b)%2 != 0\n print(abs(a-b)/2)\nelse:\n print('IMPOSSIBLE')", "a,b = map(int,input().split())\n\nif abs(a+b) % 2 == 0:\n print(abs(a+b)/2)\nelse:\n ... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s178995500', 's446725155', 's737719195', 's257892185'] | [2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0] | [106, 102, 105, 100] |
p02957 | u624533266 | 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. | ['998244353 99824435', 'a, b = list(map(int, input().split()))\n\nif (a + b) % 2 != 0:\n print("IMPOSSIBLE")\nelse:\n print((a + b) // 2)'] | ['Runtime Error', 'Accepted'] | ['s872289548', 's947765742'] | [2940.0, 2940.0] | [17.0, 17.0] | [18, 114] |
p02957 | u624613992 | 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 a,b = map(int,input().split())\nif (a+b)/2 == (a+b)//2:\n print((a+b)//2)\nelse:\n print("IMPOSSIBLE") ', 'a,b = map(int,input().split())\nif (a+b)/2 == (a+b)//2:\n print((a+b)//2)\nelse:\n print("IMPOSSIBLE") '] | ['Runtime Error', 'Accepted'] | ['s099064396', 's465998837'] | [2940.0, 2940.0] | [17.0, 18.0] | [144, 101] |
p02957 | u626228246 | 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'] | ['s721101873', 's140679292'] | [2940.0, 2940.0] | [17.0, 17.0] | [80, 80] |
p02957 | u626468554 | 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\ns = a+b\n\nif s < 0:\n s = 0-s\n\nprint(s)\n\nif s%2 == 0:\n print(int(s/2))\n \nelse:\n print("IMPOSSIBLE")', 'a, b = map(int,input().split())\n\ns = a+b\n\nif s < 0:\n s = 0-s\n\n\n\nif s%2 == 0:\n print(int(s/2))\n \nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s352699148', 's208724707'] | [2940.0, 2940.0] | [17.0, 17.0] | [142, 134] |
p02957 | u626881915 | 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.is_integer():\n print((a+b)//2)\nelse:\n print("IMPOSSIBLE")', 'a,b=map(int,input().split())\nif ((a+b)/2).is_integer():\n print((a+b)//2)\nelse:\n print("IMPOSSIBLE")\n'] | ['Runtime Error', 'Accepted'] | ['s096599990', 's105741979'] | [9008.0, 9160.0] | [26.0, 24.0] | [99, 102] |
p02957 | u627434558 | 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 = a - b\nif (diff % 2) == 0:\n ans = int(max(a-(diff/2), b-(diff/2)))\n print(ans)\nelse:\n print('IMPOSSIBLE')\n", "a, b = map(int, input().split())\nif (a+b) % 2 == 0:\n print((a+b)//2)\nelse:\n print('IMPOSSIBLE')\n"] | ['Wrong Answer', 'Accepted'] | ['s832648711', 's720704144'] | [2940.0, 2940.0] | [17.0, 17.0] | [154, 102] |
p02957 | u628158887 | 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\n\ndef main():\n MOD=10**9+7\n\n S = input()\n S = S[::-1]\n N = len(S)\n dp=np.zeros((N+1,13),dtype=np.int)\n dp[0,0]=1\n\n for i in range(N):\n if S[i]=="?":\n for s in range(10):\n for j in range(13):\n dp[i+1][(s*(10**i)+j... | ['Runtime Error', 'Accepted'] | ['s116440283', 's860269236'] | [13300.0, 2940.0] | [168.0, 17.0] | [632, 100] |
p02957 | u628965061 | 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 K==int(K) else 'IMPOSSIBLE')", "A,B=map(int,input().split())\nK=(A+B)/2\nprint(int(K) if K==int(K) else 'IMPOSSIBLE')"] | ['Wrong Answer', 'Accepted'] | ['s524766082', 's039264352'] | [2940.0, 2940.0] | [17.0, 17.0] | [78, 83] |
p02957 | u629350026 | 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(int(abs(a-b)/2))\nelse:\n print("IMPOSSIBLE")', 'a,b=map(int,input().split())\nif abs(a+b)%2==0:\n print(int(abs(a+b)/2))\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s000878100', 's380409363'] | [2940.0, 2940.0] | [24.0, 17.0] | [99, 99] |
p02957 | u631277801 | 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\nsys.setrecursionlimit(10 ** 7)\n\ndef li(): return map(int, stdin.readline().split())\ndef li_(): return map(lambda x: int(x) - 1, stdin.readline().split())\ndef lf(): return map(float, stdin.readline().split())\ndef ls(): return stdin.readline().split()\ndef ns(): return stdin.readli... | ['Runtime Error', 'Accepted'] | ['s600320162', 's540055145'] | [3064.0, 3064.0] | [17.0, 17.0] | [497, 498] |
p02957 | u634079249 | 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\nimport os\n\n\ndef main():\n if os.getenv("LOCAL"):\n sys.stdin = open("input.txt", "r")\n\n A, B = list(map(int, sys.stdin.buffer.readline().split()))\n print((abs(A-B))//2 if (abs(A-B))%2 == 0 else \'IMPOSSIBLE\')\n\n\nif __name__ == \'__main__\':\n main()\n', 'import sys\nimport os\n... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s458887827', 's673313304', 's875429458'] | [2940.0, 2940.0, 2940.0] | [18.0, 17.0, 17.0] | [273, 284, 263] |
p02957 | u636775911 | 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(i) for i in input().split()]\nans=n[0]+n[1]\nif(ans%2==0):\n print(ans)\nelse:\n print("IMPOSSIBLE")', 'n=[int(i) for i in input().split()]\nans=n[0]+n[1]\nif(ans%2==0):\n print(int(ans/2))\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s059770218', 's915994457'] | [2940.0, 2940.0] | [17.0, 17.0] | [104, 111] |
p02957 | u637918426 | 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 else "IMPOSSIBLE")', 'A, B = map(int, input().split())\nprint((A+B)//2 if (A+B)%2 == 0 else "IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s507787983', 's571111165'] | [2940.0, 2940.0] | [17.0, 17.0] | [81, 82] |
p02957 | u638282348 | 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())\ndiv, rem = divmod(abs(A - B), 2)\nprint("IMPOSSIBLE" if rem else abs(A - div))', 'A, B = map(int, input().split())\ndiv, rem = divmod(abs(A - B), 2)\nprint("IMPOSSIBLE" if rem else min(A, B) + div)\n'] | ['Wrong Answer', 'Accepted'] | ['s899200890', 's453715144'] | [2940.0, 2940.0] | [17.0, 17.0] | [110, 114] |
p02957 | u638393586 | 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 != B%2:\n print("IMPOSSIBLE")\nelse:\n print((A+B)/2)', 'A, B = map(int, input())\n\nif A%2 != B%2:\n print("IMPOSSIBLE")\nelse:\n print((A+B)/2)', 'A, B = map(int, input())\n\nif A%2 != B%2:\n print("IMPOSSIBLE")\nelse\n print((A+B)/2)', 'A, B = map(int, input())\n\ni... | ['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s356837449', 's805226501', 's861256712', 's950545072', 's966436975', 's261826067'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [93, 85, 84, 89, 84, 98] |
p02957 | u638867180 | 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())\ni = 0\nfor K in range(A, B):\n if abs(A - K) == abs(B - K):\n print(K," ")\n i = 1\nif i == 0:\n print("IMPOSSIBLE")', 'A,B = list(map(int,input().split()))\na = abs(A+B) % 2\nif a == 1:\n print("IMPOSSIBLE")\nelse:\n print(int(abs(A+B)/2))'] | ['Wrong Answer', 'Accepted'] | ['s493834219', 's215719769'] | [2940.0, 2940.0] | [2103.0, 17.0] | [152, 117] |
p02957 | u639104973 | 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()))\ns = [x for x in range(1,N+1) if x!=p[x-1]]\nif len(s)<3:\n print("YES")\nelse:\n print("NO")', "A,B=map(int,input().split())\nprint((A+B)//2 if (A+B)%2==0 else 'IMPOSSIBLE')"] | ['Runtime Error', 'Accepted'] | ['s524685757', 's756176857'] | [2940.0, 2940.0] | [17.0, 17.0] | [139, 76] |
p02957 | u640123177 | 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")', 'a , b ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s381834594', 's391584852', 's773574527', 's926292485', 's366751746'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 17.0, 17.0, 17.0] | [97, 97, 94, 96, 97] |
p02957 | u640603056 | 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())\t\t#type int\nif ((A+B)/2)%2 == 0:\n\tprint(int((A+B)/2))\nelse:\n\tprint("IMPOSSIBLE")', 'A, B= map(int, input().split())\t\t#type int\nif (A+B)%2 == 0:\n\tprint(int((A+B)/2))\nelse:\n\tprint("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s392070774', 's847586310'] | [2940.0, 2940.0] | [17.0, 18.0] | [111, 107] |
p02957 | u642418876 | 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((A+B)/2)\nelse:\n print("IMPOSSIBLE")\n ', '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(... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s009756386', 's180524092', 's773940604', 's428968043'] | [2940.0, 2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0, 17.0] | [91, 91, 91, 92] |
p02957 | u647287452 | 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")\n'] | ['Wrong Answer', 'Accepted'] | ['s037958746', 's801768754'] | [2940.0, 2940.0] | [18.0, 17.0] | [90, 96] |
p02957 | u652656291 | 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((abs(x)+abs(y))//2)\nelse:\n print('IMPOSSIBLE')", "a,b = map(int,input().split())\nif (a+b) % 2 == 0:\n print((abs(a)+abs(b))//2)\nelse:\n print('IMPOSSIBLE')\n"] | ['Runtime Error', 'Accepted'] | ['s688097390', 's661584527'] | [2940.0, 2940.0] | [17.0, 17.0] | [105, 106] |
p02957 | u653175574 | 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\nif K % 2 == 0 and 0 <= A <= 100000000 and 0 <= B <= 10000000000:\n print(K / 2)\nelse:\n print("IMPOSSIBLE")\n', 'A, B = map(int, input().split())\nK = A + B\nif K % 2 == 0:\n print(K / 2)\nelse:\n print("IMPOSSIBLE")', 'A, B = map(int, input().split())\nK = A + B\nif ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s010528421', 's040766781', 's088790543', 's166958961', 's186994372', 's323399935', 's330300678', 's410875999', 's521841986', 's635497557', 's810288792', 's320553477'] | [2940.0, 2940.0, 2940.0, 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, 19.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0] | [151, 100, 100, 100, 100, 102, 120, 113, 101, 102, 100, 102] |
p02957 | u655048024 | 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)\nif (K%2==0):\n print(A+(K//2))\nelse:\n print("IMPOSSIBLE")', 'List = list(map(int,input().split())) \nList.sort()\nK = List[1]-List[0]\nif (K%2==0):\n print(List[0]+(K//2))\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s638085683', 's109054652'] | [2940.0, 2940.0] | [17.0, 17.0] | [99, 135] |
p02957 | u656246389 | 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 = input().split()\na = ab[0]\nb = ab[1]\n\nif (a + b) % 2 == 0:\n print (a + b) // 2\nelse:\n "IMPOSSIBLE"', 'def main():\n n = int(input())\n ps = [int(x) for x in input().split()]\n\n dis = []\n\n for n, p in enumerate(ps):\n if n + 1 != p:\n dis.append(p)\n\n if len(dis) == 2 ... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s445487189', 's596829095', 's943319148', 's105406143'] | [2940.0, 2940.0, 3060.0, 3064.0] | [17.0, 17.0, 17.0, 18.0] | [104, 269, 276, 127] |
p02957 | u657329920 | 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 = input().split()\nA, B = [int(num) for num in x]\nK = (A+B)/2\nif int(K) = K:\n print(K)\nelse:\n print("IMPOSSIBLE")', 'x = input().split()\nA, B = [int(num) for num in x]\nK = (A+B)/2\nif int(K) == K:\n print(int(K))\nelse:\n print("IMPOSSIBLE")\n'] | ['Runtime Error', 'Accepted'] | ['s379881666', 's552831401'] | [2940.0, 2940.0] | [17.0, 17.0] | [116, 123] |
p02957 | u658987783 | 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==1 or b%2==1:\n print("impossible")\n exit()\nelse:\n print((a+b)/2)', 'a,b=map(int,input().split())\n\nif (a+b)%2==1:\n print("IMPOSSIBLE")\n exit()\nelse:\n print((a+b)//2)'] | ['Wrong Answer', 'Accepted'] | ['s243137779', 's404262081'] | [2940.0, 2940.0] | [17.0, 18.0] | [104, 99] |
p02957 | u664233597 | 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'] | ['s216894359', 's125939431'] | [2940.0, 2940.0] | [17.0, 17.0] | [102, 107] |
p02957 | u664373116 | 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()))\nans=abs(a-b)\nif ans%2==1:\n print("IMPOSSIBLE")\nelse:\n print(int(ans/2))', 'a,b=list(map(int,input().split()))\nans=abs(a+b)\nif ans%2==1:\n print("IMPOSSIBLE")\nelse:\n print(int(ans/2))'] | ['Wrong Answer', 'Accepted'] | ['s782379785', 's335011428'] | [2940.0, 2940.0] | [17.0, 17.0] | [112, 112] |
p02957 | u665598835 | 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. | ['inp = input().split()\nA = int(inp[0])\nB = int(inp[1])\nif (A + B) % 2== 0:\n print((A+B)/2)\nelse:\n print("IMPOSSIBLE")', 'inp = input().split()\nA = int(inp[0])\nB = int(inp[1])\nif ((A +B) /2) % 2== 0:\n print((A+B)/2)\nelse:\n print("IMPOSSIBLE")', 'inp = input().split()\nA = int(inp[0])\nB = int(in... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s124319072', 's265329669', 's628431015'] | [2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0] | [122, 126, 127] |
p02957 | u666844906 | 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())\nK = (a + b) / 2\nif (type(K) is int):\n print(K)\nelse:\n print(IMPOSSIBLE)', "a, b = map(int, input().split())\nif (a + b) % 2 == 0:\n print(int((a + b)/2))\nelse:\n ... | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s925885723', 's931429958', 's393761277'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [104, 106, 109] |
p02957 | u668705838 | 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(min(a,b)+(a-b)//2)\nelse:\n print("IMPOSSIBLE")\n', 'a,b = map(int, input().split())\nif abs(a-b)%2==0:\n print((a-b)//2)\nelse:\n print("IMPOSSIBLE")', 'a,b = map(int, input().split())\na,b = max(a,b),min(a,b)\nif (a-b)%2==0:\n print(int(b+(a-b)//2))\ne... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s117258257', 's560606435', 's449353908'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [105, 95, 123] |
p02957 | u670961163 | 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, x =map(int, input().split())\nif (a+x)%2 ==0:\n print((a+x)/2)\nelse:\n print('IMPOSSIBLE')", "a, x =map(int, input().split())\nif (a+x)%2 ==0:\n print(int((a+x)/2))\nelse:\n print('IMPOSSIBLE')\n"] | ['Wrong Answer', 'Accepted'] | ['s708149117', 's050059995'] | [9024.0, 9000.0] | [24.0, 27.0] | [92, 98] |
p02957 | u672494157 | 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. | ['998244353 99824435', 'import sys\n\nsys.setrecursionlimit(4100000)\n\n\ndef inputs(num_of_input):\n ins = [input() for i in range(num_of_input)]\n return ins\n\n\ndef solve(inputs):\n [A, B] = string_to_int(inputs[0])\n if (A + B) % 2 != 0:\n return "IMPOSSIBLE"\n else:\n return (A+B) // ... | ['Runtime Error', 'Accepted'] | ['s565346474', 's931246417'] | [2940.0, 3060.0] | [17.0, 19.0] | [18, 438] |
p02957 | u676059589 | 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. | ["from copy import *\nfrom sys import *\nimport math\nimport queue\nfrom collections import defaultdict,Counter,deque\nfrom fractions import Fraction as frac\n\nsetrecursionlimit(1000000)\n\ndef main():\n\ta,b = map(int,input())\n\tif((a+b)%2==0):\n\t\tprint((a+b)//2)\n\telse:\n\t\tprint('IMPOSSIBLE')\ndef zip(a):\n\tm... | ['Runtime Error', 'Accepted'] | ['s258103266', 's081319848'] | [6152.0, 6152.0] | [213.0, 63.0] | [1829, 1838] |
p02957 | u678505520 | 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"] | ['Runtime Error', 'Accepted'] | ['s607242192', 's234755253'] | [8992.0, 9064.0] | [25.0, 29.0] | [100, 101] |
p02957 | u681110193 | 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. | ['\nA,B=map(int,input().split())\n\nif (A+B)%2==1:\n print("IMPOSSIBLE")\n\nelse:\n print((A+B)/2)', '\nA,B=map(int,input().split())\n\nif (A+B)%2=1:\n print("IMPOSSIBLE")\n\nelse:\n print((A+B)/2)', '\nA,B=map(int,input().split())\n\nif (A+B)%2==1:\n print("IMPOSSIBLE")\n\nelse:\n print(int((A+B)/2))'] | ['Wrong Answer', 'Runtime Error', 'Accepted'] | ['s022500586', 's088997425', 's717081804'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 20.0] | [91, 90, 96] |
p02957 | u682271925 | 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())\nc = abs(a - b)\nif (a - b) == 0:\n print(0)\nelif c % 2 == 0:\n if a > b:\n print(a - c / 2)\n else:\n print(b - c / 2)\nelse:\n print("IMPOSSIBLE")', 'a,b = map(int,... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s071840576', 's312458008', 's316664986', 's842795855', 's721143614'] | [2940.0, 3060.0, 2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [102, 180, 105, 94, 107] |
p02957 | u682408064 | 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. | ['# input process\ninputData = input().split()\nA, B = [int(x) for x in inputData]\n\nK = (A + B) / 2\nif K.is_integer():\n print(K)\nelse:\n print("IMPOSSIBLE ")', 'inputData = input().split()\nA, B = [int(x) for x in inputData]\n\nK = (A + B) / 2\nif K.is_integer():\n print(int(K))\nelse:\n print("IMPOSSI... | ['Wrong Answer', 'Accepted'] | ['s830612807', 's871439340'] | [2940.0, 2940.0] | [17.0, 17.0] | [158, 147] |
p02957 | u684204084 | 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 == 1:\n\tprint("IMPOSSIBLE")\nelse:\n\tprint((A+B)/2)\n', 'A, B = map(int, input().split())\n\nif (A+B)%2 == 1:\n\tprint("IMPOSSIBLE")\nelse:\n\tprint(int((A+B)/2))\n'] | ['Wrong Answer', 'Accepted'] | ['s074295181', 's637684722'] | [2940.0, 2940.0] | [17.0, 17.0] | [94, 99] |
p02957 | u685244071 | 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((A+B)//2)\nelse:\n print("IMPOSSIBLE")\n', 'A, B = map(int, input().split())\n\nif (A+B)%2 == 0:\n print((A+B)//2)\nelse:\n print("IMPOSSIBLE")\n'] | ['Runtime Error', 'Wrong Answer', 'Accepted'] | ['s088260546', 's097324308', 's105636303'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 18.0] | [94, 97, 97] |
p02957 | u685410538 | 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(input())\nB = int(input())\nC = int((A + B))\n\nif(C%2 == 1):\n print("IMPOSSIBLE")\nelse:\n K = C / 2\n print(int(K))', 'A = int(input())\nB = int(input())\nC = (A + B)\n\nif(C%2 == 1):\n print("IMPOSSIBLE")\nelse:\n K = C / 2\n print(int(K))', 'N = int(input())\nList = [int(i) for i in inp... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s576483812', 's595355165', 's731004263', 's884353364'] | [2940.0, 2940.0, 3064.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [127, 122, 183, 132] |
p02957 | u685662874 | 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)', "a,b=map(int, input().split())\nk=(a+b)/2\nif a+b % 2 != 0:\n print('IMPOSSIBLE')\nelse:\n print(int(k))", "a,b=map(int, input().split())\nk=(a+b)/2\nif (a+b) % 2 != 0:\n print('IMPOSSIBLE')\nelse:\n print(int(k))"] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s097964053', 's711924000', 's854982462'] | [2940.0, 2940.0, 2940.0] | [18.0, 18.0, 17.0] | [44, 104, 106] |
p02957 | u687443343 | 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 l = A+B\n print(l/2.0)\nelse:\n print('IMPOSSIBLE')", "A,B = map(int,input().split())\nif (A+B)%2 == 0:\n l = A+B\n print(l//2.0)\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', 'Wrong Answer', 'Accepted'] | ['s082706728', 's396756252', 's915986158', 's573187289'] | [2940.0, 3060.0, 2940.0, 2940.0] | [16.0, 18.0, 17.0, 17.0] | [100, 101, 92, 102] |
p02957 | u690961016 | 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())\nif isinstance((a + b) / 2):\n print((a + b) / 2)\nelse:\n print("IMPOSSIBLE")\n', '# -*- coding: utf-8 -*-\na, b = map(int, input().split())\nif (a + b) % 2 == 0:\n print((a + b) // 2)\nelse:\n print("IMPOSSIBLE")'] | ['Runtime Error', 'Accepted'] | ['s456363956', 's979034586'] | [2940.0, 2940.0] | [17.0, 17.0] | [138, 131] |
p02957 | u692258787 | 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=list(input().split())\nA=int(x[0])\nB=int(x[1])\nif A>B:\n k=(A-B)/2\nelse:\n k=(B-A)/2\nif int(k)==k:\n print("%.0f"%k)\nelse:\n print("IMPOSSIBE")\n', 'x=list(input().split())\nA=int(x[0])\nB=int(x[1])\nk=(A+B)/2\nif int(k)==k:\n print("%.0f"%k)\nelse:\n print("IMPOSSIBLE")\n'] | ['Wrong Answer', 'Accepted'] | ['s395602758', 's844089224'] | [3060.0, 2940.0] | [18.0, 17.0] | [157, 124] |
p02957 | u692453235 | 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())\nans = (A+B)/2\n\nif ans == (A+B)//2:\n print(ans)\nelse:\n print("IMPOSSIBLE")', 'A, B = map(int, input().split())\nans = (A+B)//2\n\nif ans == (A+B)/2:\n print(ans)\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s522451368', 's807066742'] | [2940.0, 2940.0] | [18.0, 18.0] | [108, 108] |
p02957 | u694402282 | 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\nif c%2==0:\n print((a+b)/2)\nelse:\n print("IMPOSSIBLE")', 'a, b = map(int, input().split())\nc = a+b\nif c%2==0:\n print((a+b)//2)\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s916791814', 's821223682'] | [2940.0, 2940.0] | [17.0, 17.0] | [100, 101] |
p02957 | u695079172 | 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-a)%2==0:\n print((b-a)//2)\nelse:\n print("IMPOSSIBLE")', 'a,b=map(int,input().split())\n\nif (b-a)%2==0:\n print((b+a)//2)\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s071924989', 's898355335'] | [2940.0, 2940.0] | [17.0, 17.0] | [90, 90] |
p02957 | u698919163 | 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'] | ['s469077547', 's133698358'] | [2940.0, 2940.0] | [17.0, 17.0] | [104, 109] |
p02957 | u699101754 | 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(input())\na=a+b\nif (a)%2==0:\n print(a//2)\nelse:\n print('IMPOSSIBLE')", "a,b=map(int,input().split())\na=a+b\nif (a)%2==0:\n print(a//2)\nelse:\n print('IMPOSSIBLE')"] | ['Runtime Error', 'Accepted'] | ['s594603322', 's002192599'] | [2940.0, 2940.0] | [17.0, 17.0] | [77, 89] |
p02957 | u703890795 | 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()))\nerr = 0\nfor i in range(N):\n if p[i]!=i:\n err+=0\nif err == 0:\n print("YES")\nelif err == 2:\n print("YES")\nelse:\n print("NO")', 'a, b = map(int, input().split())\nif (a+b)%2 == 1:\n print("IMPOSSIBLE")\nelse:\n print((a+b)/2)', 'N = int(input())\np... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s078466763', 's215410852', 's436733674', 's979922398'] | [3060.0, 2940.0, 3060.0, 2940.0] | [17.0, 17.0, 18.0, 17.0] | [182, 94, 182, 95] |
p02957 | u705427370 | 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 if a-b > b-a:\n print(a-((a-b)/2))\n else:\n print(b-((b-a)/2))\n\nelse:\n print("IMPOSSIBE")', 'a,b = map(int,input().split())\n\nif (a-b)%2 == 0:\n if a-b > b-a:\n print((a-b)/2)\n else:\n print((b-a)/2)\n\nelse:\n pr... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s033327166', 's608025012', 's808039639'] | [2940.0, 2940.0, 3060.0] | [17.0, 17.0, 17.0] | [160, 152, 171] |
p02957 | u707225322 | 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 \nfor i in range(0, 10**9):\n if (a-i) == (b-i):\n print(i)\n break\n \nprint("IMPOSSIBLE")', 'a, b = (int(i) for i in input().split())\n\nfor i in range(0, 10**9):\n if (a-i) == (b-i):\n print(i)\n \nprint("IMPOSSIBLE")', 'a, b = (int(i) for i in input().sp... | ['Time Limit Exceeded', 'Time Limit Exceeded', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s540146951', 's727926429', 's778824463', 's781589797', 's787098155', 's798168656', 's861240868', 's088225757'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3064.0, 2940.0, 3064.0] | [2104.0, 2104.0, 17.0, 17.0, 17.0, 18.0, 17.0, 18.0] | [137, 126, 107, 108, 113, 139, 108, 113] |
p02957 | u708890186 | 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'] | ['s288303909', 's840924825'] | [2940.0, 2940.0] | [17.0, 17.0] | [88, 89] |
p02957 | u710393251 | 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(input())\nb = input().split()\nfor i in range(a):\n b[i] = int(b[i])\n \nfor i in range(a-1):\n if (b[i] > b[i+1]):\n break\nif i == a-2:\n print('YES')\nelse:\n for j in range(a-1,i,-1):\n if (b[j] < b[j-1]):\n break\n temp = b[i]\n b[i] = b[j]\n b[j] = temp\n for k in range(a-1):\n if... | ['Runtime Error', 'Accepted'] | ['s109085611', 's129416013'] | [3064.0, 2940.0] | [17.0, 17.0] | [385, 107] |
p02957 | u712868001 | 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)/2\nD=A+B\nif A==B:\n print(0)\nelif D %2 != 0:\n print('IMPOSSIBLE')\nelse:\n print(C)", "A,B = map(int, input().split())\nC=(A+B)/2\nif A+B %2 != 0:\n print('IMPOSSIBLE')\nelse:\n print(C)", "A,B = map(int, input().split())\nC=(A+B)/2\nD=A+B\nif D %2 != 0:\n ... | ['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s033812953', 's183736480', 's198499921', 's260232162', 's260285690', 's267839284', 's389094671', 's481626322', 's490473113', 's714696221', 's182054619'] | [2940.0, 3316.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 23.0, 18.0, 17.0, 17.0, 17.0, 17.0, 17.0, 17.0, 18.0, 17.0] | [128, 100, 120, 95, 114, 104, 112, 119, 96, 100, 120] |
p02957 | u714878632 | 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((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'] | ['s574313968', 's134312307'] | [2940.0, 2940.0] | [17.0, 17.0] | [111, 116] |
p02957 | u715454214 | 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. | ["s = list(map(int, input.split()))\nA = s[0]\nB = s[1]\nresult = (A + B)\nif result % 2 ==0:\n print(result)\nelse:\n print('IMPOSSIBLE')", "s = list(map(int, input.split()))\nA = s[0]\nB = s[1]\nresult = (A + B)\nif result % 2 ==0:\n print(result/2)\nelse:\n print('IMPOSSIBLE')\n ", "s = list(map(int, ... | ['Runtime Error', 'Runtime Error', 'Accepted'] | ['s422742596', 's962592252', 's105619193'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [135, 142, 163] |
p02957 | u716660050 | 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: print('IMPOSSIBLE')\nelse: print(int((A+B)/2))", "A,B=map(int,input().split())\nif A%2!=B%2: print('IMPOSSIBLE')\nelse: print(int((A+B)/2))"] | ['Wrong Answer', 'Accepted'] | ['s933229408', 's835684564'] | [2940.0, 2940.0] | [18.0, 17.0] | [87, 87] |
p02957 | u716922016 | 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. | ["S = input().split()\n\nA = abs(int(S[0]) - int(S[1]))\nans = 0\nif A % 2 == 0:\n ans = A / 2 \n print(ans)\nelse:\n print('IMPOSSIBLE')\n", "S = input().split()\n\nA = abs(int(S[0]) - int(S[1]))\nans = 0\nif A % 2 == 0:\n ans = int(A / 2) \n if int(S[0]) > int(S[1]):\n print(ans + int(S[1]))\n else:\n pri... | ['Wrong Answer', 'Accepted'] | ['s562987204', 's846075805'] | [2940.0, 3060.0] | [17.0, 17.0] | [131, 212] |
p02957 | u717001163 | 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",(a+b)/2)[(a+b)%2==0])', 'a,b=map(int,input().split())\nprint(("IMPOSSIBLE",(a+b)//2)[(a+b)%2==0])'] | ['Wrong Answer', 'Accepted'] | ['s982944789', 's331117260'] | [2940.0, 2940.0] | [17.0, 17.0] | [70, 71] |
p02957 | u718401738 | 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. | ['lis=list(map(int,input().split())\na=lis[0]+lis[1]\nif a%2==0:\n print(int(a/2))\nelse:\n print("IMPOSSIBLE")\n', 'lis=list(map(int,input().split()))\na=lis[0]+lis[1]\nif a%2==0:\n print(int(a/2))\nelse:\n print("IMPOSSIBLE")\n'] | ['Runtime Error', 'Accepted'] | ['s396693267', 's131923610'] | [3060.0, 2940.0] | [17.0, 17.0] | [111, 112] |
p02957 | u718411265 | 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=list(map(int,input().split()))\nif (A+B)%2==0:\n print((A+B)//2)\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s296481471', 's299310573', 's574274635'] | [2940.0, 3064.0, 2940.0] | [17.0, 17.0, 17.0] | [88, 88, 95] |
p02957 | u719193574 | 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\nKint=int(K)\nif (K==Kint):\n print (K)\nelse:\n print ('IMPOSSIBLE')", "A,B=map(int,input().split())\nK=(A+B)/2\nKint=(A+B)//2\nif (K==Kint):\n print (K)\nelse:\n print ('IMPOSSIBLE')", "A,B=map(int,input().split())\nK=(A+B)/2\nKint=(A+B)//2\nif (K==Kint):\n print (Kint)\... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s590391493', 's925993918', 's297618870'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [105, 107, 110] |
p02957 | u719886494 | 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().splid())\nif (a + b) % 2 == 0 :\n print((a + b) / 2)\nelse :\n print("IMPOSSIBLE")\n', 'a, b = list(map(int, input().split()))\nif (a + b) % 2 == 0 :\n print((a + b) / 2)\nelse :\n print("IMPOSSIBLE")\n', 'a, b = map(int, input().splid())\nif (a + b) % 2 == 0 :\n print((a + b) / 2)\nelse\... | ['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted'] | ['s286333404', 's302379319', 's394417590', 's424520914', 's702604142', 's722557233', 's293217294'] | [2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0] | [17.0, 18.0, 18.0, 17.0, 17.0, 17.0, 18.0] | [105, 111, 103, 103, 105, 103, 106] |
p02957 | u720065198 | 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()))\nb = list(map(int,input().split()))\nc = 0\nfor i in range(n):\n if a[i]>=b[i]:\n c+=int(b[i])\n else:\n if (a[i]+a[i+1])>=b[i]:\n c+=int(b[i])\n a[i+1]=a[i]+a[i+1]-b[i]\n else:\n c+=int(a[i]+a[i+1])\nprint(c)', 'n = int(input())\na = list... | ['Runtime Error', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted'] | ['s100868317', 's583758177', 's961308481', 's969469423', 's563659736'] | [3064.0, 3064.0, 3064.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0, 17.0, 17.0] | [275, 275, 267, 170, 97] |
p02957 | u722117999 | 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)/2\nif x.is_integer()==1:print(x)\nelse:print("IMPOSSIBLE")', 'a,b=map(int,input().split())\nx=(a+b)/2\nif x.is_integer()==1:print(int(x))\nelse:print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s120965458', 's666225464'] | [2940.0, 2940.0] | [17.0, 17.0] | [93, 98] |
p02957 | u724844363 | 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 print((a+b)/2)', 'a,b = map(int,input().split())\nif (a+b)%2 ==1:\n print("IMPOSSIBLE")\nelse:\n print(int((a+b)/2))\n'] | ['Wrong Answer', 'Accepted'] | ['s727427889', 's169004844'] | [2940.0, 2940.0] | [17.0, 17.0] | [93, 101] |
p02957 | u729133443 | 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=eval(input().replace(' ','+'));print(a%2*'IMPOSSIBLE'or a/2)", "a=eval(input().replace(*' +'))\nprint(a%2*'IMPOSSIBLE'or a//2)"] | ['Wrong Answer', 'Accepted'] | ['s759920019', 's759145203'] | [2940.0, 9004.0] | [17.0, 24.0] | [62, 61] |
p02957 | u731362892 | 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())\nif x%2!=y%2:\n print('IMPOSSIBLE')\nelse:\n print((x+y)/2)", "x,y = map(int,input().split())\nif x%2!==y%2:\n print('IMPOSSIbLE')\nelse: print((x+y)/2) ", "x,y = map(int,input().split())\nif x%2!=y%2:\n print('IMPOSSIBLE')\nelse:\n print((x+y)/2)", "x,y = map(int,input().split())... | ['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted'] | ['s576350875', 's819860640', 's866375718', 's863129890'] | [2940.0, 2940.0, 2940.0, 2940.0] | [20.0, 17.0, 17.0, 17.0] | [88, 89, 88, 94] |
p02957 | u731368968 | 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(abs(a-b)//2)\nelse:\n print('IMPOSSIBLE')", "a, b = map(int, input().split())\nif (a-b) %2==0:\n print(abs(a+b)//2)\nelse:\n print('IMPOSSIBLE')"] | ['Wrong Answer', 'Accepted'] | ['s753750867', 's524771317'] | [2940.0, 2940.0] | [17.0, 17.0] | [101, 101] |
p02957 | u732730677 | 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 kotae = (a+b)/2\n print(kotae)\n", "a,b = map(int,input().split())\nif (a+b) % 2 == 0:\n kotae = (a+b) // 2\n print(kotae)\nelse:\n print('IMPOSSIBLE')"] | ['Wrong Answer', 'Accepted'] | ['s229474603', 's141353319'] | [2940.0, 2940.0] | [17.0, 17.0] | [115, 119] |
p02957 | u732870425 | 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("IMPOSSIBLE")\nelse:\n print((a+b)/2)', 'a,b=map(int, input().split())\nif a%2 != b%2:\n print("IMPOSSIBLE")\nelse:\n print((a+b)//2)\n'] | ['Wrong Answer', 'Accepted'] | ['s172543265', 's609941213'] | [2940.0, 2940.0] | [17.0, 17.0] | [89, 91] |
p02957 | u734876600 | 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'] | ['s156291537', 's805800801'] | [2940.0, 2940.0] | [17.0, 17.0] | [99, 99] |
p02957 | u740047492 | 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+b%2)!=0 else (a+b)//2) ', 'a,b=map(int,input().split())\nprint("IMPOSSIBLE" if (a+b)%2!=0 else (a+b)//2) '] | ['Wrong Answer', 'Accepted'] | ['s658923379', 's282221703'] | [2940.0, 2940.0] | [18.0, 17.0] | [77, 77] |
p02957 | u742569919 | 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())\nkk = (a - b) / 2\nif ((a - kk) == (b - kk)) or ((a - kk) == (b + kk)) :\n print(a - kk)\nelse :\n print('IMPOSSIBLE')\n", "a, b = map(int,input().split())\nkk = (a - b) // 2\nif ((a - kk) == (b - kk)) or ((a - kk) == (b + kk)) :\n print(a - kk)\nelse :\n print('IMPOSSIBL... | ['Wrong Answer', 'Accepted'] | ['s704298324', 's047703517'] | [2940.0, 2940.0] | [17.0, 17.0] | [153, 154] |
p02957 | u742960659 | 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())\n\nans = abs(a-b)\nM = max(a,b)\n\nif ans%2==0:\n ans/=2\n print(M-ans)\nelse:\n print("IMPOSSIBLE")', 'import math\na,b=map(int,input().split())\n\nans = abs(a-b)\nM = max(a,b)\n\nif ans%2==0:\n ans//=2\n print(M-ans)\nelse:\n print("IMPOSSIBLE")'] | ['Wrong Answer', 'Accepted'] | ['s936721716', 's440086537'] | [3060.0, 3060.0] | [17.0, 18.0] | [141, 142] |
p02957 | u745921526 | 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. | ["temp = list(map(int, input().split()))\n\nA = temp[0]\nB = temp[1]\n\nif abs(A - B) % 2 == 1:\n print('IMPOSSIBLE')\nelse:\n print(int(abs(A - abs(A - B) / 2)))", "temp = list(map(int, input().split()))\n\nA = max(temp)\nB = min(temp)\n\nif abs(A - B) % 2 == 1:\n print('IMPOSSIBLE')\nelse:\n print(int(A -... | ['Wrong Answer', 'Accepted'] | ['s892737272', 's313204657'] | [2940.0, 3060.0] | [17.0, 17.0] | [158, 154] |
p02957 | u747427153 | 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\nprint(c//2 if c%2==0)\n', 'a, b = map(int, input().split())\nc = a + b\nif c % 2 == 0:\n print(c//2)\nelse:\n print("IMPOSSIBLE")\n'] | ['Runtime Error', 'Accepted'] | ['s367690252', 's281904555'] | [2940.0, 2940.0] | [17.0, 17.0] | [63, 100] |
p02957 | u747941497 | 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:\n print(0)\nelif (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:\n print(0)\nelif (a+b)%2==0:\n print(int((a+b)... | ['Wrong Answer', 'Wrong Answer', 'Accepted'] | ['s174166182', 's834250253', 's930948161'] | [2940.0, 2940.0, 2940.0] | [17.0, 17.0, 17.0] | [117, 91, 121] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.