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
u749770850
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")\n\n', 'a, b = map(int , input().split())\n\nif a + b % 2 == 0:\n\tprint(a + b / 2)\nelse:\n\tprint("IMPOSSIBLE")\n\n', 'a, b = map(int , input().split())\n\nif (a + b) % 2 == 0:\n\tprint((a + b) // 2)\nelse:\n...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s044423860', 's294867167', 's810631773']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[103, 100, 105]
p02957
u750371175
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.
['cn = int(input())\nenm = input().split(" ")\nbrv = input().split(" ")\ntaoshita = int(0)\n\nfor i in range(0,cn):\n taoshita = taoshita + min(abs(int(brv[i])),abs(int(enm[i]))) \n enm[i] = int(enm[i]) - int(brv[i])\n if int(enm[i]) < 0:\n brv[i] = abs(int(enm[i]))\n enm[i] = 0\n if (int...
['Runtime Error', 'Runtime Error', 'Accepted']
['s248451048', 's843706685', 's234657728']
[3064.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0]
[570, 165, 168]
p02957
u753810022
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(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')", "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']
['s143883704', 's248799087', 's388927656']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[100, 100, 100]
p02957
u754022296
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:\n print("IMPOSSIBLE")\nelse:\n print((a+b)//2)', 'a,b=map(int,input().split())\nif a+b%2:\n print("IMPOSSIBLE")\nelse:\n print(a+b//2)', 'a,b=map(int,input().split())\nif (a+b)%2:\n print("IMPOSSIBLE")\nelse:\n print((a+b)//2)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s334150150', 's581629448', 's527800520']
[2940.0, 3064.0, 2940.0]
[17.0, 18.0, 17.0]
[84, 82, 86]
p02957
u754511616
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()))\nif (a+b)%2==0:\n print(int((a+b)/2))\nelse:\n print('IMPOSSIBLE'", "a,b=list(map(int,input().split()))\nif abs(int((a-b)/2))=abs(int((b-a)/2)):\n print(int((a+b)/2))\nelse:\n print('IMPOSSIBLE')\n\n", "a,b=list(map(int,input().split()))\nif (a+b)%2==0:\n print(int((a+b)/2))\ne...
['Runtime Error', 'Runtime Error', 'Accepted']
['s331405109', 's715042503', 's990535918']
[8928.0, 8896.0, 9156.0]
[22.0, 29.0, 27.0]
[98, 126, 100]
p02957
u756195685
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\nif ans % 2 == 0:\n print(ans //2)\nelse:\n print("IMPOSSIBLE")', 'N = int(input())\np = list(map(int,input().split()))\ncount = 0\nfor i in range(N-1):\n if p[i + 1] - p[i] != 1:\n count += 1\nif count == 2 or count == 0:\n print("YES")\nelse:\n print("NO")', 'a,b=...
['Runtime Error', 'Runtime Error', 'Accepted']
['s611039933', 's794803265', 's697189176']
[2940.0, 3060.0, 3316.0]
[20.0, 17.0, 21.0]
[103, 189, 103]
p02957
u756518089
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.
['arr = input().split(" ")\nA = int(arr[0])\nB = int(arr[1])\n \nK = (A + B) / 2\nif isinstance(K, int) == true:\n print(K)\nelse:\n print("IMPOSSIBLE")', 'arr = input().split(" ")\nA = int(arr[0])\nB = int(arr[1])\n \nif (A + B) % 2 == 0:\n print(int((A + B) / 2))\nelse:\n print("IMPOSSIBLE")']
['Runtime Error', 'Accepted']
['s612705874', 's060496643']
[2940.0, 2940.0]
[17.0, 17.0]
[144, 137]
p02957
u756693875
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) % 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')"]
['Wrong Answer', 'Accepted']
['s572694444', 's207849236']
[2940.0, 2940.0]
[17.0, 17.0]
[106, 100]
p02957
u757014735
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=sum(list(map(int,input().split())))\nif a%2==0:\n\tprint(a/2)\nelse:\n \tprint('IMPOSSIBLE')", "a=sum(list(map(int,input().split())))\nif a%2==0:\n\tprint(a//2)\nelse:\n \tprint('IMPOSSIBLE')"]
['Wrong Answer', 'Accepted']
['s408554185', 's864213584']
[2940.0, 2940.0]
[17.0, 17.0]
[89, 90]
p02957
u759412327
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(list(map(int,input().split())))\nz = B-A\n\nif z%2==0:\n print(z)\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")']
['Wrong Answer', 'Accepted']
['s295445770', 's230842718']
[2940.0, 9000.0]
[17.0, 31.0]
[103, 92]
p02957
u761087127
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(n) for n in input().split()]\nprint((A+B)/2 if (A+B)/2%2==0 else "IMPOSSIBLE")', "A, B = [int(n) for n in input().split()]\nprint('IMPOSSIBLE' if (A+B)%2 else (A+B)//2)\n"]
['Wrong Answer', 'Accepted']
['s978704275', 's679761170']
[2940.0, 2940.0]
[17.0, 18.0]
[88, 86]
p02957
u762469320
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((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')\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s535038542', 's558196989', 's927342264']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 20.0]
[91, 91, 97]
p02957
u763249708
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\nif abs(a-k) == abs(b-k):\n print(k)\nelse:\n print("IMPOSSIBLE")\n', 'a, b = map(int, input().split())\n\nk = (a+b)//2\n\nif abs(a-k) == abs(b-k):\n print(k)\nelse:\n print("IMPOSSIBLE")\n']
['Wrong Answer', 'Accepted']
['s187001313', 's842776428']
[2940.0, 2940.0]
[18.0, 17.0]
[115, 116]
p02957
u767438459
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=a+b/2\n\nif i.is_integer()==True:\n print(i)\nelse:\n print("IMPOSSIBLE")', 'a,b=map(int,input().split())\ni=a+b/2\nprint(a)\nprint(b)\nprint(i)\nif i.is_integer()==True:\n print(i)\nelse:\n print("IMPOSSIBLE")', 'a,b=map(int,input().split())\nx=(a+b)/2\nif x.is_integer():\...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s040636242', 's410040842', 's557100919']
[9164.0, 9068.0, 9064.0]
[27.0, 31.0, 26.0]
[105, 131, 105]
p02957
u767664985
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.
['INF = 10 ** 9 + 7\n\nS = input()\n\ndp = [[0] * 13 for _ in range(len(S) + 1)]\ndp[0][0] = 1\nmul = 1\n\nfor i in range(len(S)):\n x = S[-(i + 1)]\n if x == "?":\n for k in range(10):\n for j in range(13):\n dp[i + 1][(mul * k + j) % 13] += dp[i][j]\n dp[i + 1][(m...
['Runtime Error', 'Accepted']
['s805520529', 's372457611']
[3064.0, 3316.0]
[18.0, 22.0]
[675, 108]
p02957
u769215762
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=[]\nfor x in input().split(" "):\n a.append(int(x))\n\nif (a[0]+a[1])%2==0:\n print((a[0]+a[1])/2)\nelse:\n print("IMPOSSIBLE")', 'a=[]\nfor x in input().split(" "):\n a.append(int(x))\n\nif a[0]+a[1]%2==0:\n print((a[0]+a[1])/2)\nelse:\n print("IMPOSSIBLE")', 'a=[]\nfor x in input().split(" "):\n...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s431473227', 's672700064', 's151554159']
[3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[131, 129, 132]
p02957
u769411997
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*a-b*b)/(2*(b-a))\nif type(ans) == int:\n print(ans)\n\nelse:\n print('IMPOSSIBLE')", "a, b = map(int, input().split())\nif a > b and (a+b)%2 == 0:\n ans = (a+b)/2\n print(int(ans))\n\nelif b > a and (a+b)%2 == 0:\n ans = (b+a)/2\n print(int(ans))\nelse:\n ...
['Wrong Answer', 'Accepted']
['s942174100', 's205228128']
[2940.0, 3060.0]
[17.0, 17.0]
[126, 222]
p02957
u769633956
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 string\nwhile True:\n try:\n a,b=map(int,input().split())\n if a!=b:\n if str((a+b)/2.0).isdecimal():\n print(int((a+b)/2))\n else:print("IMPOSSIBLE")\n else:print(int(a+b))\n except:break', 'import string\nwhile True:\n try:\n a,b=map(i...
['Wrong Answer', 'Accepted']
['s816517596', 's156762094']
[3964.0, 3956.0]
[31.0, 32.0]
[250, 238]
p02957
u770661341
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())\nl=list(map(int,input().split()))\ncount=0\nfor i in range(1,n+1)\n if l[i-1]!=i:\n count+=1\nprint("YES" if count==0 or count==2 else "NO")', 'a,b=map(int,input().split())\nprint((a+b)//2 if (a+b)%2==0 else "IMPOSSIBLE")\n']
['Runtime Error', 'Accepted']
['s374990607', 's475515731']
[2940.0, 2940.0]
[17.0, 17.0]
[159, 77]
p02957
u773246942
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\n\n', 'A, B = map(int,input().split())\n \nif (A+B) % 2 == 1:\n print((A+B)/2)\nelse :\n print("IMPOSSI...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s355184038', 's530006932', 's541239580', 's845039448']
[2940.0, 2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0, 17.0]
[98, 101, 99, 104]
p02957
u773440446
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)%2 == 0:\n print((abs(a+b)//2))\nelse:\n print('IMPOSSIBLE')\n", "a,b = map(int,input().split())\nif (abs(a+b)/2)%2 == 0:\n print((abs(a-b)//2))\nelse:\n print('IMPOSSIBLE')\n", "a,b = map(int,input().split())\nif (abs(a-b)/2)%2 == 0:\n print((abs(a-b)//2))\nelse:\n...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s284444608', 's524465831', 's936820257', 's805594827']
[9040.0, 9216.0, 9064.0, 9080.0]
[25.0, 28.0, 29.0, 27.0]
[106, 106, 105, 104]
p02957
u774985302
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 ', 'a,b = map(int,input().split())\nif (a + b)%2 == 0:\n print((a+b)/2)\nelse:\n print("IMPOSSIB...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s223526701', 's271713322', 's455275129', 's881422028', 's953954303', 's609501007']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[100, 103, 104, 104, 103, 107]
p02957
u777283665
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\nx = abs(a-b)\n\nprint(x)\n\nif x % 2 != 0:\n print("IMPOSSIBLE")\n exit()\n\nif a < b:\n print(a + (x // 2))\nelse:\n print(b + (x // 2))', 'a, b = map(int,input().split())\n\nx = abs(a-b)\n\nif x % 2 != 0:\n print("IMPOSSIBLE")\n exit()\n\nif a < b:\n print(a +...
['Wrong Answer', 'Accepted']
['s528108939', 's920527646']
[2940.0, 2940.0]
[17.0, 17.0]
[171, 161]
p02957
u778700306
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 itertools\n\ndef getint(): return int(input())\ndef getints(): return list(map(int, input().split()))\n\na,b=list(sorted(getints()))\n\n\nprint((b-a)//2 if a%2==b%2 else "IMPOSSIBLE")\n', 'import itertools\n\ndef getint(): return int(input())\ndef getints(): return list(map(int, input().split()))\n\na,b=list(s...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s397614912', 's675355783', 's963924803']
[3060.0, 3060.0, 3060.0]
[18.0, 17.0, 18.0]
[183, 189, 185]
p02957
u779170803
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 = lambda: int(input())\nINTM = lambda: map(int,input().split())\nSTRM = lambda: map(str,input().split())\nSTR = lambda: str(input())\nLIST = lambda: list(map(int,input().split()))\nLISTS = lambda: list(map(str,input().split()))\ndef do():\n a,b=INTM()\n if (a+b)%2==!:\n print('IMPOSSIBLE')\n else:...
['Runtime Error', 'Runtime Error', 'Accepted']
['s560830489', 's956420497', 's626794655']
[2940.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0]
[368, 368, 368]
p02957
u779293207
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']
['s617919720', 's951883343']
[2940.0, 2940.0]
[17.0, 17.0]
[90, 96]
p02957
u780962115
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)\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']
['s245855806', 's210395661']
[2940.0, 3064.0]
[17.0, 17.0]
[84, 89]
p02957
u781262926
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.
["q, r = divmod(sum(map(int, input().split())), 2)\nprint(q if r else 'IMPOSSIBLE')", "q, r = divmod(sum(map(int, input().split())), 2)\nprint('IMPOSSIBLE' if r else q)"]
['Wrong Answer', 'Accepted']
['s947373385', 's568241378']
[2940.0, 2940.0]
[18.0, 17.0]
[80, 80]
p02957
u782616557
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\u3000(A+B)%2 !=0:\n print('IMPOSSIBLE')\nelse:\n print((A+B)//2)\n", 'A,B=map(int,input().split())\nif (A+B)%2==0:\n print((A+B)//2)\nelse:\n print("IMPOSSIBLE")\n']
['Runtime Error', 'Accepted']
['s943592492', 's266301461']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 90]
p02957
u782748646
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\nd=abs(a-b)\nif d%2 == 0:\n print(int(d/2))\nelse:\n print('IMPOSSIBLE')\n", "a,b=map(int, input().split())\n\nd=a+b\nif d%2 == 0:\n print(int(d/2))\nelse:\n print('IMPOSSIBLE')\n"]
['Wrong Answer', 'Accepted']
['s684872648', 's756589373']
[2940.0, 2940.0]
[17.0, 18.0]
[105, 100]
p02957
u783676040
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,M=map(int,input().split())\nif (N+M)%2==0:\n print((N+M)/2)\nelse:\n print("IMPOSSIBLE")', 'N,M=map(int,input().split())\nif (N+M)%2==0:\n print((N+M)/2)\n else:\n print("IMPOSSIBLE")', 'N,M=map(int,input().split())\nif (N+M)%2==0:\n print((N+M)//2)\nelse:\n print("IMPOSSIBLE")']
['Wrong Answer', 'Runtime Error', 'Accepted']
['s112277173', 's937724362', 's408114967']
[9160.0, 8840.0, 9128.0]
[29.0, 23.0, 26.0]
[88, 89, 89]
p02957
u785208802
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(max(a, b) - abs(a, b) // 2 if not (a + b) % 2 else "IMPOSSIBLE")', 'a, b = map(int, input().split())\nprint(max(a, b) - abs(a - b) // 2 if not (a + b) % 2 else "IMPOSSIBLE")']
['Runtime Error', 'Accepted']
['s892421815', 's737412238']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 104]
p02957
u788703383
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 = list(map(int,input().split()))\nif sum(a)%2 == 0:\n print(sum(a)//2)\nelse:\n print('IMPOSSIBLE')", "n,*p = map(int,open(0).read().split())\nans = 0\nfor i in range(n):\n if i+1 != p[i]:\n if i+1 == p[p[i]-1]:\n ans += 1\n\nprint('YES' if ans == 0 or 2 else 'NO')", "a = list(map(int,in...
['Runtime Error', 'Runtime Error', 'Accepted']
['s135469968', 's991600324', 's433958020']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[104, 176, 103]
p02957
u788997230
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\nif(k.is_integer()):\n print(k)\nelse:\n print("IMPOSSIBLE")\n', 'a,b = map(int,input().split())\n\nk = (a+b)/2\n\nif(k.is_integer()):\n print(int(k))\nelse:\n print("IMPOSSIBLE")\n']
['Wrong Answer', 'Accepted']
['s586833128', 's864608781']
[2940.0, 2940.0]
[17.0, 17.0]
[108, 113]
p02957
u791527495
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 + y) % 2 == 1:\n print("IMPOSSIBLE")\nelse:\n c = (x + y) /2\n print(c)', 'x,y = map(int,input().split())\nif (x + y) % 2 == 1:\n print("IMPOSSIBLE")\nelse:\n c = (x + y) /2\n print(c)', 'x,y = map(int,input().split())\nif (x + y) % 2 == 1:\n print("IMPOSSIBLE")\nelse:\n ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s475844222', 's547101185', 's083498880']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[107, 107, 112]
p02957
u794652722
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")\n', '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(int((a+b)/2))\nelse:\n print("IMPOSSIBLE")\n']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s556894377', 's760124499', 's819154127']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[89, 98, 103]
p02957
u795733769
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\nif(abs(a-b)%2 == 0):\n print((a+b)/2)\nelse:\n print('IMPOSSIBLE')\n", "a,b = map(int, input().split() )\n \nif abs(b-a)%2==0:\n print(int(abs(b-a)/2))\nelse:\n print('IMPOSSIBLE')", "a,b = map(int, input().split() )\n \nif abs(b-a)%2==0:\n print(int(ab...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s240282181', 's541266841', 's742646097', 's794836058', 's902497575']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 17.0]
[116, 109, 109, 104, 108]
p02957
u796044734
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(int((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")\n']
['Wrong Answer', 'Accepted']
['s417726611', 's524997926']
[3064.0, 2940.0]
[17.0, 17.0]
[97, 100]
p02957
u796708718
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(" ")]\n\nif (A+B)%2 == 0:\n print((A+B)/2)\nelse:\n print("INPOSSIBLE")\n', 'A, B = [int(x) for x in input().split(" ")]\n\nfor k in range(0,10**9):\n if abs(A-k) == abs(B-k):\n print(k)\n else:\n print(IMPOSSIBLE)', 'A, B = [int(x) for x in input().split(" ")]\n\nout =...
['Wrong Answer', 'Runtime Error', 'Time Limit Exceeded', 'Time Limit Exceeded', 'Accepted']
['s104678464', 's271961140', 's762609507', 's894138706', 's706390147']
[2940.0, 2940.0, 2940.0, 30524.0, 2940.0]
[17.0, 17.0, 2104.0, 2104.0, 17.0]
[107, 139, 141, 142, 112]
p02957
u798475526
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(map(int,input().split()))\n\nif (x[0] + x[1]) % 2 == 0:\n print((x[0] + x[1]) / 2)\nelse:\n print("IMPOSSIBLE")', "x=list(map(int,input().split()))\n\nif (x[0] + x[1]) % 2 == 0:\n print((x[0] + x[1]) / 2)\nelse:\n print('IMPOSSIBLE')", "x=list(map(int,input().split()))\n\nif (x[0] + x[1]) % 2 == 0:...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s410510705', 's890525225', 's521904607']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[119, 119, 124]
p02957
u804048521
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())\nif ((a + b)%2) == 0:\n print (a + b)//2\nelse:\n print ('IMPOSSIBLE')", 'A, B = map(int, input().split())\nprint((A+B)//2 if (A+B)%2==0 else "IMPOSSIBLE")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s626254436', 's751591786', 's910428511']
[2940.0, 2940.0, 2940.0]
[18.0, 18.0, 17.0]
[80, 101, 81]
p02957
u805070334
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 i = (a + b)/2\n print(i)", "a, b = map(int, input().split())\n \nif a % 2 != b % 2:\n print('IMPOSSIBLE')\nelse:\n i = (a + b)//2\n print(i)"]
['Wrong Answer', 'Accepted']
['s044063943', 's350614735']
[2940.0, 2940.0]
[17.0, 17.0]
[113, 115]
p02957
u809457879
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())\nl=list(map(int,input().split()))\nl1=sorted(l)\nans=0\nfor i in range(N):\n if l[i]!=l1[i]:\n ans+=1\nif ans==0 or ans==2:\n print('YES')\nelse:\n print('NO')", "x,y=map(int,input().split())\nif (x+y)%2==0:\n print(int((x+y)/2))\nelse:\n print('IMPOSSIBLE')"]
['Runtime Error', 'Accepted']
['s194073559', 's888902250']
[3060.0, 2940.0]
[17.0, 17.0]
[170, 93]
p02957
u810625173
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()\nA = int(s.split()[0])\nB = int(s.split()[1])\n\nif (A + B) % 2 == 0:\n print((A+B)/2)\nelse:\n print('IMPOSSIBLE')\n", "s = input()\nA = int(s.split()[0])\nB = int(s.split()[1])\n\nif A == B:\n print(0)\nelif (A + B) % 2 == 0:\n print((A+B)/2)\nelse:\n print('IMPOSSIBLE')", "s = input()\nA = int(s.s...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s039791309', 's966807966', 's128606801']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[123, 146, 128]
p02957
u813102292
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']
['s115164326', 's740245427']
[9036.0, 9048.0]
[29.0, 25.0]
[100, 101]
p02957
u813452457
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:\n i = a-b\nelse:\n i = b-a\n\nif i % 2 == 0:\n print(int(i/2))\nelse:\n print('IMPOSSIBLE')", "a,b = map(int,input().split())\n\ns = a+b\n\nif s % 2 == 1:\n print('IMPOSSIBLE')\nelse:\n print(int(s/2))"]
['Wrong Answer', 'Accepted']
['s000965148', 's831380690']
[2940.0, 2940.0]
[17.0, 17.0]
[135, 105]
p02957
u813953440
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()))\nA = []\nfor i in range(N-1):\n if P[i]>P[i+1]:\n A.append([(P[i],i),(P[i+1],i+1)])\nl = len(A)\nif l > 2:\n print("NO")\nelif l ==1:\n print("NO")\nelif l == 0:\n print("YES")\nelse:\n a = max(A[0])\n b = min(A[1])\n P[a[1]],P[b[1]] = b...
['Runtime Error', 'Accepted']
['s733995041', 's645769226']
[3064.0, 2940.0]
[17.0, 17.0]
[455, 127]
p02957
u814986259
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 print("IMPOSSIBLE")\n \nelse:\n print((A+B)/2)', '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 print("IMPOSSIBLE")\n \nelse:\n print((A+B)//2)']
['Runtime Error', 'Runtime Error', 'Accepted']
['s016188332', 's246003534', 's916111740']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[91, 91, 93]
p02957
u815843486
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:\n print("IMPOSSIBLE")', 'A,B = map(int,input().split())\nK = (A+B)/2\nif (A+B)%2 == 0:\n print(K)\nelse:\n print("IMPOSSIBLE")', 'A,B = map(int,input().split())\nK = (A+B)/2\nif (A == B):\n print("IMPOSSIBLE")\nelse:\n i...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s549936283', 's702780941', 's724504906', 's071298216']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0, 17.0]
[102, 102, 161, 166]
p02957
u819048695
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.
['num=input().split()\nA=int(num[0])\nB=int(num[1])\nif A==B:\n print(0)\nelif (A+B)%2==0:\n print((A+B)/2)\nelse:\n print("IMPOSSIBLE")', 'num=input().split()\nA=int(num[0])\nB=int(num[1])\nif A==B:\n print(0)\nelif (A+B)%2==0:\n print(int((A+B)/2))\nelse:\n print("IMPOSSIBLE")']
['Wrong Answer', 'Accepted']
['s083017323', 's787954492']
[2940.0, 3060.0]
[17.0, 17.0]
[135, 140]
p02957
u821284362
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\nA,B = map(int,input().split(" "))\n\nif (A-B)%2 == 1:\n print(\'IMPOSSIBLE\')\nelse:\n print((A+B)/2)', 'import numpy as np\n\nA,B = map(int,input().split(" "))\n\nif (A-B)%2 == 1:\n print(\'IMPOSSIBLE\')\nelse:\n print((A+B)//2)']
['Wrong Answer', 'Accepted']
['s310349696', 's701813592']
[14304.0, 12416.0]
[150.0, 149.0]
[120, 121]
p02957
u821590705
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 = map(int, input().split())\n\nswap = 0\ndone = False\nok = True\nfor i in range(n):\n p = next(ps)\n if p != i+1:\n if done:\n ok = False\n break\n elif swap != 0:\n if swap == i+1:\n done = True\n swap = 0\n ...
['Runtime Error', 'Accepted']
['s914863961', 's252339553']
[3060.0, 2940.0]
[17.0, 17.0]
[446, 115]
p02957
u821712904
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:\n print(0)\nelif (a+b)%2==0:\n print((a+b)//2)\nelse:\n print('IMPOSSIBLE')\n"]
['Runtime Error', 'Accepted']
['s772190854', 's071997649']
[2940.0, 2940.0]
[17.0, 17.0]
[110, 112]
p02957
u823609854
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 % 2 == 0:\n print(diff // 2)\nelse:\n print('IMPOSSIBLE')", "a, b = map(int, input().split(' '))\ndiff = b + a\nif diff % 2 == 0:\n print(diff // 2)\nelse:\n print('IMPOSSIBLE')"]
['Wrong Answer', 'Accepted']
['s236419748', 's809077867']
[3316.0, 2940.0]
[21.0, 17.0]
[113, 113]
p02957
u825440127
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:\n print(a-((a-b)//2))\n else:\n print(b-((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"]
['Wrong Answer', 'Accepted']
['s756782514', 's142082498']
[2940.0, 2940.0]
[17.0, 17.0]
[165, 106]
p02957
u825842302
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"""\nCreated on Sun Jul 28 15:26:59 2019\n\n@author: sp8783\n"""\n\na,b = map(int,input().split())\n\nif (a+b)%2 == 0:\n print(int(a+b/2))\nelse:\n print("IMPOSSIBLE")', '# -*- coding: utf-8 -*-\n"""\nCreated on Sun Jul 28 15:26:59 2019\n\n@author: sp8783\n"""\n\na,b = map(int,input().s...
['Wrong Answer', 'Accepted']
['s706529067', 's259360410']
[2940.0, 2940.0]
[17.0, 19.0]
[186, 188]
p02957
u828261239
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())\nk = (a** 2 - b**2) / 2*(a-b)\n\n\nif(type(k)=="float"):\n print("IMPOSSIBLE")\nelif(type(k)=="int"):\n print(k)', 'a,b = map(int,input().split())\nk = (a** 2 - b**2) / (2*(a-b))\n\nif k.is_integer():\n print(int(k))\nelse : print("IMPOSSIBLE")']
['Wrong Answer', 'Accepted']
['s764415118', 's062586468']
[2940.0, 2940.0]
[17.0, 17.0]
[144, 127]
p02957
u829269490
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 \ndata = sys.stdin.readline()\n \na, b = data.strip().split()\n \nif a == b:\n print(0)\nelse:\n k = (a + b) / 2\n if k.is_integer():\n print(k)\n else:\n print('IMPOSSIBLE')", "import sys\n\ndata = sys.stdin.readline()\n\na, b = data.strip().split()\n\nif a == b:\n return 0\nelse:\n k = (a...
['Runtime Error', 'Runtime Error', 'Accepted']
['s675811473', 's944285783', 's424581958']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[186, 183, 160]
p02957
u829356061
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 = list(map(int, input().split()))\n\nre = abs(a[0] - a[1])\n\nfor i in range(a[0] - a[1]):\n if abs(a[0] - i) == abs(a[1] - i):\n print(i)\n yes = 1\n break\n\nif yes != 1:\n print('IMPOSSIBLE)", "a = list(map(int, input().split()))\n\nb = a[0] + a[1]\n\nif b % 2 == 0:\n print(b/2)\nelse:\n print('IMPO...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s306077983', 's452063277', 's764686128', 's796310768', 's123278561']
[2940.0, 2940.0, 3060.0, 3060.0, 2940.0]
[17.0, 17.0, 2104.0, 2104.0, 17.0]
[195, 109, 196, 203, 110]
p02957
u830054172
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()))\nif abs(a-b)%2 == 0:\n print(abs(a-b)%2)\nelse:\n print("IMPOSSIBLE")', 'a,b = list(map(int,input().split()))\nif abs(a-b)%2 == 0:\n print(abs(a-b)%2+min(a,b))\nelse:\n print("IMPOSSIBLE")', 'a,b = list(map(int,input().split()))\nif abs(a-b)%2 == 0:\n print(abs(a-b)//2+...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s173443460', 's718481999', 's954805863']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[104, 117, 118]
p02957
u830162518
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().spliy())\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')"]
['Runtime Error', 'Accepted']
['s285078449', 's632077765']
[2940.0, 2940.0]
[20.0, 17.0]
[90, 89]
p02957
u831294922
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, raw_input().split())\nif (a + b) % 2 == 0:\n print((a + b) // 2)\nelse:\n print("IMPOSSIBLE") ', 'a, b = map(int, raw_input().split())\nif (a + b) % 2 == 0:\n\tprint((a + b) // 2)\nelse:\n\tprint("IMPOSSIBLE") ', 'a, b = map(int, input().split())\nif (a + b) % 2 == 0:\n print((a + b) // 2)\nelse:\n...
['Runtime Error', 'Runtime Error', 'Accepted']
['s696863047', 's780468248', 's889916118']
[2940.0, 2940.0, 3064.0]
[17.0, 17.0, 17.0]
[108, 106, 105]
p02957
u831752983
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()))\nif (A+B)%2==1:\n print('IMPOSSIBLE')\nelse:\n print((A+B)/2)", "A,B = list(map(int,input().split()))\nif (A+B)%2==1:\n print('IMPOSSIBLE')\nelse:\n print((A+B)/2)", "A,B = list(map(int,input().split()))\nif (A+B)%2==1:\n print('IMPOSSIBLE')\nelse:\n print((A+B)//2)\n"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s260554305', 's423935203', 's441031490']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[96, 96, 98]
p02957
u834832056
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_arr = [input() for i in range(2)]\nN = input_arr[0]\np_arr = input_arr[1].split(\' \')\n\nk = 0\nfor i in range(len(p_arr)):\n if int(p_arr[i]) == i + 1:\n pass\n else:\n k += 1\nif k < 2:\n print("YES")\nelse:\n print("NO")', 'input_arr = [input() for i in range(2)]\nN = input_arr[0]\...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s291866158', 's576398757', 's774965902', 's410484958']
[3060.0, 3060.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[241, 254, 232, 273]
p02957
u835732324
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)\nelse:\n print("IMPOSIBLE")\n', 'A,B = map(int,input().split())\nK =nA + B\n\nif K % 2 == 0:\n print(K)\nelse:\n print("IMPOSSIBLE")\n', 'A,B = map(int,input().split())\nK =nA + B\n\nif K % 2 == 0:\n print(K)\nelse:\n print("IMPOSSIBLE"...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s211624064', 's236258231', 's426111589', 's445427148', 's542563164', 's577039419', 's690864843', 's617616071']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0, 18.0, 17.0, 17.0, 17.0, 17.0]
[93, 100, 100, 103, 99, 94, 98, 98]
p02957
u841021102
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 ...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s642363921', 's651637278', 's764119773']
[8892.0, 9104.0, 8972.0]
[22.0, 25.0, 26.0]
[105, 106, 107]
p02957
u841793789
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']
['s140001104', 's519411671']
[2940.0, 3064.0]
[18.0, 17.0]
[77, 78]
p02957
u842116721
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.
["k = sum(list(map(int, input().split())))/2\nif k % 1:\n print('IMPOSSIBLE')\n exit()\nprint(k)", "k = sum(list(map(int, input().split())))/2\nif k % 1:\n print('IMPOSSIBLE')\n exit()\nprint(int(k))"]
['Wrong Answer', 'Accepted']
['s349237935', 's823311116']
[2940.0, 2940.0]
[17.0, 17.0]
[96, 101]
p02957
u842388336
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 = list(map(int, input().split()))\nA = max(N) + min(N)\n\nanswer = 0\nif A % 2 == 0:\n answer = A/2\nelse:\n answer = "IMPOSSIBLE"\n \nprint(answer)\n', 'N = list(map(int, input().split()))\nA = max(N) + min(N)\n\nanswer = 0\nif A/2 == abs(int(A/2)):\n answer = A/2\nelse:\n answer = "IMPOSSIBLE"\n \nprint(ans...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s342768782', 's641311097', 's661166973', 's852207153', 's289157123']
[2940.0, 2940.0, 2940.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[145, 154, 144, 163, 150]
p02957
u843318346
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\nif ans%1==0:\n print(ans)\nelse:\n print('IMPOSSIBLE')", "a,b = map(int,input().split())\nans = (a+b)/2\nif ans%1==0:\n print(int(ans))\nelse:\n print('IMPOSSIBLE')\n"]
['Wrong Answer', 'Accepted']
['s742743893', 's192165751']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 104]
p02957
u844123804
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.
["num = input().split()\na = int(num[0])%2\nb = int(num[1])%2\nif a!=b: print('IMPOSSIBLE')\nelse: print((a+b)/2)", "num = input().split()\nif int(num[0])+int(num[1])%2!=0:\n print('IMPOSSIBLE')\nelse:\n print(int(num[0])+int(num[1])//2)", "num = input().split()\na = int(num[0])%2\nb = int(num[1])%2\nif a!=b: print('...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s033407158', 's354080238', 's699001926', 's884423126']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[107, 118, 127, 128]
p02957
u844789719
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.
["if (A + B) % 2:\n print('IMPOSSIBLE')\nelse:\n print((A + B) // 2)\n", "A, B = [int(_) for _ in input().split()]\nif (A + B) % 2:\n print('IMPOSSIBLE')\nelse:\n print((A + B) // 2)\n"]
['Runtime Error', 'Accepted']
['s610688493', 's371222690']
[2940.0, 2940.0]
[17.0, 17.0]
[70, 111]
p02957
u846652026
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(int((a+b)/2) if (a+b)/2%2==0 else "IMPOSSIBLE")', 'a,b=map(int, input().split())\nprint(int(a*b/2) if a*b/2%2==0 else "IMPOSSIBLE")', 'a,b=map(int, input().split())\nprint(int((a+b)/2) if int((a+b)%2)==0 else "IMPOSSIBLE")']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s579362956', 's806824046', 's953461621']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[83, 79, 86]
p02957
u847165882
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=input("")\nB=input("")\n\nA=int(A)\nB=int(B)\n\nK=0\nAns=0\nfor K in range(-100000,100000,1):\n if abs(A-K)==abs(B-K):\n print(K)\n Ans=K\n break\nif Ans==0:\n print("impossible")', 'A,B=map(int,input().split(" "))\n\nK=(A+B)/2\nprint(int(K) if int(K)==K else "IMPOSSIBLE")']
['Runtime Error', 'Accepted']
['s122715230', 's909291693']
[3060.0, 2940.0]
[17.0, 17.0]
[194, 87]
p02957
u850772037
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 = int(A+B)\nif k%2 == 0:\n print(k/2)\nelse:\n print("IMPOSSIBLE")', 'A,B = map(int,input().split())\nk = (A+B)\nif k%2 == 0:\n print(int(k/2))\nelse:\n print("IMPOSSIBLE")']
['Wrong Answer', 'Accepted']
['s739479056', 's523254699']
[2940.0, 2940.0]
[17.0, 17.0]
[101, 103]
p02957
u857673087
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)% ==0 else 'IMPOSSIBLE')\n", "A,B = map(int, input().split())\n\nprint( (A+B)/2 if type((A+B)/2) =int else 'IMPOSSIBLE')", "A,B = map(int, input().split())\n\nprint((A+B)//2 if (A+B)% ==0 else 'IMPOSSIBLE')\n", "A,B =map(int, input().split())\n\nprint( (A+B)/...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s008872855', 's494112124', 's639545103', 's297458813']
[2940.0, 2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[82, 88, 81, 81]
p02957
u859448927
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']
['s817222032', 's392073926']
[2940.0, 2940.0]
[18.0, 17.0]
[92, 94]
p02957
u860002137
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']
['s618682850', 's867650655']
[2940.0, 2940.0]
[17.0, 17.0]
[88, 88]
p02957
u860546679
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(int((A+B)/2)) if (A+B)%2==0 else print('IMPOSSIBLE')"]
['Wrong Answer', 'Accepted']
['s020118133', 's850261561']
[2940.0, 2940.0]
[16.0, 17.0]
[82, 87]
p02957
u861886710
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()))\nresutl = (A+B)/2 if (A+B)%2 == 0 else "IMPOSSIBLE"\nprint(result)', 'A, B = list(map(int, input().split()))\nresult = (A+B)/2 if (A+B)%2 == 0 else "IMPOSSIBLE"\nprint(result)', 'A, B = list(map(int, input().split()))\nresult = (A+B)//2 if (A+B)%2 == 0 else "IMPOSSIBLE"\nprint(r...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s552336607', 's581936308', 's781350138']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[103, 103, 105]
p02957
u863370423
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)\nadd = A + B\n\nif add % 2 == 0:\n\tresult = int(add / 2)\n\tprint(result)\n\tabs_result = abs(A - result)\n\tprint('|{}-{}| = {} and |{}-{}| = {}, so {} satisfies the condition.'.format(A, result, abs_result, B, result, abs_result, result))\nelse:\n\tprint('IMPOSSIBLE')...
['Wrong Answer', 'Accepted']
['s393370346', 's305152558']
[3060.0, 9100.0]
[17.0, 29.0]
[349, 112]
p02957
u863397945
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 == 0:\n print(abs((A-B))//2)\nelse:\n print("IMPOSSIBLE")', 'A,B = map(int,input().split())\n\nif ((A+B)/2)%1 == 0:\n print(abs((A+B))//2)\nelse:\n print("IMPOSSIBLE")']
['Wrong Answer', 'Accepted']
['s967668777', 's349857923']
[9156.0, 9116.0]
[23.0, 33.0]
[107, 107]
p02957
u867604473
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 % 2 == 0 and 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('IMPOSSIBLE')\nelse:\n prin...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s289930863', 's799141392', 's295772711']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 20.0]
[100, 110, 105]
p02957
u867826040
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())\nf=True\nfor i in range(max(a,b)):\n if abs(a-i)==abs(b-i):\n print(i)\n f=False\n break\nif f:\n print("IMPOSSIBLE")', 'a,b = map(int,input().split())\nf=True\nif a%2 == b%2:\n print((a+b)//2)\nelse:\n print("IMPOSSIBLE")\n']
['Runtime Error', 'Accepted']
['s204734674', 's318178737']
[2940.0, 2940.0]
[17.0, 17.0]
[151, 99]
p02957
u867848444
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())\nk=abs((a-b)/2) \nk1=math.trunc(k)\nif (k-k1)==0 and k!=0:\n print(int(k))\nelse:\n print('IMPOSSIBLE')", "import math\na,b=map(int,input().split())\nk=abs((a-b)/2)\nk1=math.trunc(k)\nif (k-k1)==0:\n print(int(k))\nelse:\n print('IMPOSSIBLE')", "import math\na,b=...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s037614180', 's755051463', 's899357857', 's384172211']
[3060.0, 3060.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0, 17.0]
[145, 134, 128, 82]
p02957
u868628468
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)and(b%2==1)):\n c = (a+b)/2\n print(c)\n\nif ((a%2==0)and(b%2==0)):\n c =(a+b)/2\n print(c)\nelse:\n print("IMPOSSIBLE")', 'a,b = map(int, input().split())\n\nif ((a%2 == 1)and(b%2==1)):\n c = (a+b)/2\n print(int(c))\n\nif ((a%2==0)and(b%2==0)):\n ...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s556139426', 's586040778', 's652661957']
[3060.0, 3064.0, 3060.0]
[17.0, 17.0, 17.0]
[174, 229, 187]
p02957
u869154953
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.
['if (A+B)%2==0:\n\tprint((A+B)//2)\nelse:\n\tprint("IMPOSSIBLE")', 'A,B,=map(int,input().split())\n\n\nif (A+B)%2==0:\n\tprint((A+B)//2)\nelse:\n\tprint("IMPOSSIBLE")']
['Runtime Error', 'Accepted']
['s927784865', 's045470003']
[8960.0, 9100.0]
[25.0, 26.0]
[58, 90]
p02957
u873839198
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 = list(map(int, input().split()))\nb = abs(a[0] - a[1])\n\nif b % 2 == 0:\n print(abs(a[0] - b // 2))\nelse:\n print("IMPOSSIBLE")', 'a = list(map(int, input().split()))\nb = abs(a[0] - a[1])\n \nif b % 2 == 0:\n print(max(a[0], a[1]) - b // 2)\nelse:\n print("IMPOSSIBLE")']
['Wrong Answer', 'Accepted']
['s671820738', 's948365215']
[2940.0, 2940.0]
[17.0, 17.0]
[129, 136]
p02957
u874333466
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=(A+B)/2\n\nif (A-B)%2==0:\n print(answer)\nelse:\n print('IMPOSSIBLE')\n", "import math\nA,B = list(map(int,input().split()))\n\nK = (A+B)/2\n\nif (K % 1) == 0:\n print(int(K))\nelse:\n print('IMPOSSIBLE')"]
['Wrong Answer', 'Accepted']
['s248471167', 's131953403']
[2940.0, 2940.0]
[17.0, 17.0]
[106, 123]
p02957
u879266613
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((A+B)/2)', 'A,B = map(int,input().split())\n\nif (A+B)%2 != 0:\n print("IMPOSSIBLE")\nelse:\n print(int((A+B)/2))']
['Wrong Answer', 'Accepted']
['s229282538', 's342312273']
[3316.0, 3316.0]
[19.0, 18.0]
[97, 102]
p02957
u881472317
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 ...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s604460878', 's850693394', 's595447837']
[2940.0, 2940.0, 2940.0]
[19.0, 17.0, 17.0]
[104, 106, 108]
p02957
u882389182
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()))\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\n ", "a,b = list(map(int, input().split()))\nif (a+b)%2==0:\n print((a+b)//2)\nelse:\n pr...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s719783300', 's760416770', 's425715009']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[103, 107, 103]
p02957
u883040023
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# A**2 - 2AK + K**2 = B**2 - 2BK + K**2\n# 2(B - A)K = B**2 - A**2\n\n\nK = (A + B) / 2\n\n\nif K % 1 == 0:\n print(K)\nelse:\n print("IMPOSSIBLE")', 'A , B = map(int , input().split())\n\n# A**2 - 2AK + K**2 = B**2 - 2BK + K**2\n# 2(B - A)K = B**2 - A**2\n\n\nK = (A + B) /...
['Wrong Answer', 'Accepted']
['s927176848', 's227067849']
[2940.0, 2940.0]
[17.0, 17.0]
[233, 238]
p02957
u888337853
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\ninputAB = input()\ninputAB.split()\n\ninputA = int(inputAB[0])\ninputB = int(inputAB[2])\n\nif inputA > inputB:\n largeNum = inputA\n smallNum = inputB\nelse:\n largeNum = inputB\n smallNum = inputA\n\n\nif ((largeNum - smallNum) % 2) == 1:\n print("IMPOSSIBLE")\nelse:\n a...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s251384732', 's469368067', 's128942659']
[3060.0, 3060.0, 2940.0]
[17.0, 17.0, 17.0]
[366, 356, 413]
p02957
u890461092
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 = input().split()\nb = a[0] + a[1]\nif b%2 == 0:\n print(b/2)\nelse:\n print('IMPOSSIBLE')", "a = list(map(int, input().split()))\nb = a[0] + a[1]\nif b%2 == 0:\n print(b/2)\nelse:\n print('IMPOSSIBLE')", "i = int(input())\nl = list(map(int, input().split()))\ns = sorted(l)\nf = 0\n\nfor n in range(i):\n if ...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s437846435', 's562049428', 's629280724', 's991897277']
[2940.0, 2940.0, 3060.0, 2940.0]
[18.0, 18.0, 17.0, 17.0]
[89, 105, 263, 110]
p02957
u892826567
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\nk = (a+b) / 2\n\nif (a+b) % 2 == 0:\n print(k)\nelse :\n print('IMPOSSIBLE')\n", "a, b = list(map(int, input().split()))\n\nk = (a+b) / 2\n\nif k == int(k):\n print(k)\nelse :\n print('IMPOSSIBLE')\n", "a, b = list(map(int, input().split()))\n\ndef calc(a, b):\n ...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s119035146', 's427092943', 's940446566', 's433119171']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[118, 115, 210, 123]
p02957
u892990989
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 \tprint('IMPOSSIBLE')\n\nif (a - b) / 2 == ( b - a) / 2:\n \tprint((a + b) /2)", 'a, b = [int(d) for d in input().split()]\n\nif (a + b) % 2 != 0:\n print("IMPOSSIBLE")\nelse:\n print((a + b) // 2)']
['Wrong Answer', 'Accepted']
['s368970047', 's864447331']
[2940.0, 2940.0]
[17.0, 17.0]
[129, 116]
p02957
u893270619
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('IMPPOSSIBLE') \n", "A, B = map(int, input())\nif (A+B)%2==0:\n print((A+B)/2)\nelse:\n print('IMPPOSSIBLE') ", "A, B = map(int, input().split())\nif (A+B)%2==0:\n print(int((A+B)/2)) \nelse:\n print('IMPOSSIBLE') "]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s796652475', 's954229766', 's214373616']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 16.0]
[95, 86, 99]
p02957
u896741788
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,s=map(int,input().split())\nif a%2==b%2:\n print((a+s)//2)\nalse:\n print("IMPOSSIBLE")', 'a,s=map(int,input().split())\nif a%2==b%2:\n print((a+s)//2)\nelse:\n print("IMPOSSIBLE")', 'a,s=map(int,input().split())\nif a%2==s%2:\n print((a+s)//2)\nelse:\n print("IMPOSSIBLE")\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s798263502', 's855170528', 's809685138']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0]
[87, 87, 88]
p02957
u896847891
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()))\nc=0\nfor i in range(n-1):\n if a[i]!=i+1:\n c+=1\nprint("YES" if c<3 else "NO")\n \n', 'a, b = map(int, input().split())\nans = a+b\nif ans % 2:\n print("IMPOSSIBLE")\nelse:\n ans //= 2\n print(ans)']
['Runtime Error', 'Accepted']
['s951105601', 's329649120']
[2940.0, 2940.0]
[17.0, 17.0]
[132, 107]