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
u063073794
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
['p,q=map(int,input().split())\nif (p-q)%2==1:\n print("IMPOSSIBLE")\nelse:\n print(abs((p-q)//2))', 'p,q=map(int,input().split())\nif (p-q)%2==1:\n print("IMPOSSIBLE")\nelse:\n print((p+q)//2)']
['Wrong Answer', 'Accepted']
['s033593991', 's718629696']
[2940.0, 2940.0]
[17.0, 17.0]
[94, 89]
p02957
u063346608
2,000
1,048,576
We have two distinct 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\nanswer = 0\nif A - k >= 0 and -B + k >=0 :\n\tanswer = 1\n \nelif -A + k >=0 and B - k >= 0 :\n\tanswer = 1 \n \nif answer == 1 and (A + B) % 2 == 0 :\n\tprint(k)\nelse :\n\tprint("IMPOSSIBLE")', 'A,B = map(int,input().split())\n\nk = (A + B) / 2\n\nanswer =...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s151236937', 's252430836', 's603289195', 's809551974']
[3060.0, 3060.0, 3060.0, 2940.0]
[17.0, 18.0, 17.0, 17.0]
[235, 236, 235, 160]
p02957
u066455063
2,000
1,048,576
We have two distinct 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")\n', 'A, B = map(int, input().split())\n\nif (abs(A) + abs(B)) % 2 == 0:\n print((abs(A)+abs(B))//2)\nelse:\n print("IMPOSSIBLE")\n']
['Wrong Answer', 'Accepted']
['s129271835', 's500074891']
[2940.0, 2940.0]
[17.0, 18.0]
[103, 125]
p02957
u067986264
2,000
1,048,576
We have two distinct 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 int(k)==k:\n print(k)\nelse:\n print("IMPOSSIBLE")', 'a,b=map(int,input().split())\nk=(a+b)/2\nif k.is_integer():\n print(k)\nelse:\n print("IMPOSSIBLE")', 'a,b=map(int,input().split())\nk=(a+b)/2\nif k.is_integer():\n print(int(k))\nelse:\n print("IMPOSSIBLE")\n']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s023890262', 's059875093', 's315555372']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[91, 96, 102]
p02957
u068142202
2,000
1,048,576
We have two distinct 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())\nk = abs((a - b)/2)\nif k.is_integer() == True:\n print(int(k))\nelse :\n print('IMPOSSIBLE')", "a,b=(int(x) for x in input().split())\nk = (a+b)/2\nif int(k.is_integer()) == True:\n print(int(k))\nelse :\n print('IMPOSSIBLE')\n "]
['Wrong Answer', 'Accepted']
['s138845334', 's515657406']
[2940.0, 2940.0]
[17.0, 17.0]
[132, 135]
p02957
u068586753
2,000
1,048,576
We have two distinct 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())\nK = (A + B) / 2\nif A == B:\n print(0)\nelse:\n if isinstance(K, int):\n print(K)\n else:\n print('IMPOSSIBLE')", "A, B = (int(x) for x in input().split())\nK = (A + B) / 2\nif A == B:\n print(0)\nelse:\n if K.is_integer():\n print(int(K))\n else:\n print('I...
['Wrong Answer', 'Accepted']
['s322569115', 's747299127']
[2940.0, 2940.0]
[17.0, 17.0]
[154, 156]
p02957
u069129582
2,000
1,048,576
We have two distinct 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')\n ", "a,b=map(int,input().split())\nk=(a+b)//2\nif (a+b)%2==0:\n print(k)\nelse:\n print('IMPOSSIBLE')"]
['Wrong Answer', 'Accepted']
['s498356843', 's700701783']
[2940.0, 2940.0]
[18.0, 17.0]
[101, 97]
p02957
u069602573
2,000
1,048,576
We have two distinct 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']
['s982647082', 's319266255']
[2940.0, 2940.0]
[18.0, 17.0]
[123, 128]
p02957
u069769366
2,000
1,048,576
We have two distinct 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\nprint("IMPOSSIBLE" if (a+b)%2==1 else (a+b)/2)', 'a,b=(int(x) for x in input().split())\n\nprint("IMPOSSIBLE" if (a+b)%2==1 else (a+b)//2)']
['Wrong Answer', 'Accepted']
['s671789241', 's228986018']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 86]
p02957
u072549237
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
['#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n"""\nCreated on Fri Aug 9 22:36:19 2019\n\n@author: kohei\n"""\n\nN = input()\n\nA = int(N.split()[0])\nB = int(N.split()[1])\n\nif A==B:\n print(\'IMPOSSIBLE\')\n\nelse:\n if (A+B)%2==0:\n print((A+B)/2)\n \n else:\n print(\'IMPOSSIBLE\')\n ...
['Wrong Answer', 'Accepted']
['s032026536', 's530327977']
[2940.0, 2940.0]
[17.0, 17.0]
[296, 301]
p02957
u072717685
2,000
1,048,576
We have two distinct 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 r = int(abs(a - b)/2 + min(a, b) )\nelse:\n r = 'IMPOSSIBLE'\nprint(r)", "a, b = map(int, input().split())\n \nif (a - b) % 2 == 0:\n r = int(abs(a - b)/2 + min(a, b))\nelse:\n r = 'IMPOSSIBLE'\nprint(r)"]
['Runtime Error', 'Accepted']
['s280117138', 's761136747']
[2940.0, 2940.0]
[18.0, 17.0]
[125, 125]
p02957
u075303794
2,000
1,048,576
We have two distinct 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 = 'IMPOSSIBLE'\nif ((a+b)/2) % 2 == 0:\n k = (a+b)//2\nprint(k)", "a,b = map(int,input().split())\nk = 'IMPOSSIBLE'\nif a != b and ((a+b)/2) % 2 == 0:\n k = (a+b)//2\nprint(k)", "a,b = map(int,input().split())\nk = 'IMPOSSIBLE'\nif a != b and (a+b)%2 == 0:\n k = (a+b)//2\nprint(k)...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s699714226', 's838633278', 's745259202']
[2940.0, 2940.0, 2940.0]
[17.0, 18.0, 17.0]
[94, 105, 99]
p02957
u077075933
2,000
1,048,576
We have two distinct 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())\ndif = abs(A - B)\nprint(dif//2 if dif%2==0 else 'IMPOSSIBLE')", "A, B = map(int, input().split())\ndif = abs(A - B)\nprint(min(A, B) + dif//2 if dif%2==0 else 'IMPOSSIBLE')"]
['Wrong Answer', 'Accepted']
['s364396567', 's322637420']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 105]
p02957
u078630793
2,000
1,048,576
We have two distinct 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())\n\nif (a + b) % 2 != 0:\n print("IMPOSSIBLE")\nelse:\n if a < b:\n A = a\n B = b\n else:\n A = b\n B = a\n\n K = int(B - (B - A) / 2)\n print(str(K))\n', 'N = int(input())\nNlist = [int(i) for i in input().split()]\n\nsum = 0\ncnt = 0\nfor ...
['Runtime Error', 'Runtime Error', 'Accepted']
['s043180059', 's373201411', 's811374971']
[2940.0, 3060.0, 3060.0]
[17.0, 17.0, 17.0]
[214, 292, 180]
p02957
u083149454
2,000
1,048,576
We have two distinct 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() \na=int(A)\nB=input() \nb=int(B)\nK=(b+a)/2\nk=int(K)\nif((b+a)%2==0):\n print(k)\nif((b+a)%2!=0):\n print("IMPOSSIBLE")\n', 'A,B=input().split()\na=int(A)\nb=int(B)\nK=(b+a)/2\nk=int(K)\nif((b+a)%2==0):\n print(k)\nif((b+a)%2!=0):\n print("IMPOSSIBLE")']
['Runtime Error', 'Accepted']
['s460172744', 's007555390']
[2940.0, 3060.0]
[17.0, 17.0]
[128, 125]
p02957
u084320347
2,000
1,048,576
We have two distinct 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("', 'a,b = map(int, input().split())\n\nif (a+b)%2 == 0:\n print((a+b)/2)\nelse\n print("IMPOSSIBLE")', 'a,b =...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s378218875', 's456325063', 's490249920', 's817404330', 's396713431']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[98, 91, 97, 101, 99]
p02957
u084411645
2,000
1,048,576
We have two distinct 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(" ")]\nprint("IMPOSSIBLE" if (a+b)%2 else (a+b)/2)', 'a, b = [int(i) for i in input().split(" ")]\nprint("IMPOSSIBLE" if (a+b)%2 else (a+b)/2)', 'n = int(input())\na = [int(i) for i in input().split()]\nq = 0\nfor i in range(n):\n for j in range(i+1, n):\n t = a[i]\n a[i] = a[j...
['Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s268183934', 's294485815', 's520296313', 's855611956']
[9164.0, 9060.0, 9140.0, 9112.0]
[26.0, 27.0, 23.0, 29.0]
[87, 87, 280, 89]
p02957
u085035133
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
["# -*- coding: utf-8 -*-\n\na, b = map(int, input().split())\n\nprint((a+b)/2 if (a+b)%2==0 else 'IMPOSSIBLE')\n", "# -*- coding: utf-8 -*-\n\na, b = map(int, input().split())\n\nprint((a+b)//2 if (a+b)%2==0 else 'IMPOSSIBLE')\n"]
['Wrong Answer', 'Accepted']
['s378483914', 's709452014']
[9092.0, 9144.0]
[28.0, 24.0]
[106, 107]
p02957
u086503932
2,000
1,048,576
We have two distinct 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') \n"]
['Wrong Answer', 'Accepted']
['s292910280', 's736609661']
[2940.0, 2940.0]
[17.0, 18.0]
[89, 91]
p02957
u090032260
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
['a,b = map(int,input().split())\nfor i in range(1000000000):\n if abs(a-i)==abs(b-i):\n print(i)\nelse:\n print("IMPOSSIBLE")', 'n=int(input())\nseqs =list(map(int,input().split()))\ncount = 0\nfor i in range(1,n+1):\n if i != seqs[i]:\n count += 1\nif count <= 2:\n print("YES")\nelse:\n p...
['Time Limit Exceeded', 'Runtime Error', 'Accepted']
['s103826303', 's695835657', 's596563223']
[2940.0, 3060.0, 2940.0]
[2103.0, 17.0, 17.0]
[132, 178, 99]
p02957
u092303124
2,000
1,048,576
We have two distinct 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')\nelse:\n print((A+B)/2)", "N = int(input())\np = list(map(int, input().split()))\n\nk = 0\ncounter = 1\nfor e in p:\n if e == counter:\n counter += 1\n else:\n k += 1\n counter += 1\n\nif k <= 2:\n print...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s152456987', 's184777789', 's420076287', 's633672154', 's738826137', 's431449077']
[2940.0, 3060.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0, 17.0]
[125, 222, 128, 128, 125, 106]
p02957
u093033848
2,000
1,048,576
We have two distinct 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 ) % 2 == 0:\n print((a + b) / 2 )\nelse:\n print("IMPOSSIBLE")', 'a, b = map(int, input().split())\n\nif ((a - b) / 2 ) % 2 == 0:\n p...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s044973488', 's217425970', 's507791147', 's940332979']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 18.0]
[115, 115, 116, 109]
p02957
u095478438
2,000
1,048,576
We have two distinct 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')", "a, b = map(int, input().split())\n\nif (a+b) % 2 == 0:\n print(int((a+b)/2))\nelse:\n print('IMPOSSI...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s736720048', 's783301641', 's353420573']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[98, 100, 102]
p02957
u100800700
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
["#135 Harmony\nA,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)', "#135 Harmony\nA,B = map(int, input().split())\nprint((A+B)//2 if (A+B)%2 == 0 else 'IMPOSSIBLE')"]
['Wrong Answer', 'Runtime Error', 'Accepted']
['s890286764', 's967972258', 's014439550']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 18.0]
[94, 62, 95]
p02957
u102242691
2,000
1,048,576
We have two distinct 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 == 0:\n print((a+b)/2)\nelse:\n "IMPOSSIBLE"\n', '\na,b = map(int,input().split())\n\nif ((a+b)/2) % 1 == 0:\n print(int((a+b)/2))\nelse:\n print("IMPOSSIBLE")\n']
['Wrong Answer', 'Accepted']
['s200936588', 's951204349']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 110]
p02957
u102461423
2,000
1,048,576
We have two distinct 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 random\n\nr = random.randint(1,3)\nif r == 0:\n # TLE\n import time\n time.sleep(100000)\nelif r == 1:\n # MLE\n x = '01234567' * (1 << 27)\nelse:\n # RE\n RE\n", "import random\nr = random.randint(1,3)\n\nif r == 1:\n # TLE\n import time\n time.sleep(5)\nelif r == 2:\n # MLE\n x = '01234567'\n x ...
['Memory Limit Exceeded', 'Runtime Error', 'Memory Limit Exceeded', 'Memory Limit Exceeded', 'Accepted']
['s173819424', 's382666817', 's756491918', 's879843411', 's850468977']
[1052016.0, 1051892.0, 1060952.0, 1051888.0, 2940.0]
[708.0, 2104.0, 407.0, 701.0, 18.0]
[161, 161, 50, 161, 222]
p02957
u103902792
2,000
1,048,576
We have two distinct 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())\nd = abs(a+b)\nif d %2 ==1:\n print('IMPOSSIBLE')\nelse:\n print(d/2)", "a,b = map(int,input().split())\nd = a+b\nif d %2 ==1:\n print('IMPOSSIBLE')\nelse:\n print(d/2)", "a,b = map(int,input().split())\nd = a+b\nif d %2 ==1:\n print('IMPOSSIBLE')\nelse:\n print(int(d/2))"]
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s057811380', 's626281412', 's285582296']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[97, 92, 97]
p02957
u104442591
2,000
1,048,576
We have two distinct 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())\nnum = [int(i) for i in input().split()]\nflag = 0\nif num == sorted(num):\n flag = 1\nelse: \n sorted_num = sorted(num)\n for i in range(n):\n if flag == 1:\n break\n for j in range(n-i-1):\n temp = num[i]\n num[i] = num[i+j+1]\n num[i+j+1] = temp\n if num == sorte...
['Runtime Error', 'Runtime Error', 'Accepted']
['s109189864', 's524913991', 's394423200']
[3188.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[478, 111, 124]
p02957
u104930676
2,000
1,048,576
We have two distinct 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 (max(a,b) - min(a,b)) % 2 == 1:\n print("IMPOSSIBLE")\nelse:\n print((a+b)/2)', 'a, b = map(int, input().split())\n\nif (max(a,b) - min(a,b)) % 2 == 1:\n print("IMPOSSIBLE")\nelse:\n print(int((a+b)/2))']
['Wrong Answer', 'Accepted']
['s943234403', 's009399809']
[2940.0, 3064.0]
[18.0, 17.0]
[113, 118]
p02957
u107091170
2,000
1,048,576
We have two distinct 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 ']
['Wrong Answer', 'Accepted']
['s978666164', 's182307415']
[2940.0, 2940.0]
[17.0, 17.0]
[97, 99]
p02957
u107406081
2,000
1,048,576
We have two distinct 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)\n', 'a,b=map(int,input().split())\n\nif (a+b)%2==1:\n print("IMPOSSIBLE")\n\nelse:\n print((a+b)/2)', 'a,b=map(int,input().split())\n\nif ((a+b)%2==1):\n print("IMPOSSIBLE")\n\nelse:\n print((a+b)//2)']
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s904224452', 's943403251', 's150056389']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[93, 90, 93]
p02957
u111365362
2,000
1,048,576
We have two distinct 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())\nm = a - b\nif m % 2 == 1:\n print('IMPOSSIBLE')\nelse:\n print(abs(m//2))", "a,b = map(int,input().split())\nm = a + b\nif m % 2 == 1:\n print('IMPOSSIBLE')\nelse:\n print(abs(m//2))"]
['Wrong Answer', 'Accepted']
['s781111846', 's943909015']
[2940.0, 2940.0]
[17.0, 20.0]
[102, 102]
p02957
u112065131
2,000
1,048,576
We have two distinct 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\ndef main():\n\n A, B = map(int, input().split())\n\n if (A + B) % 2 == 0:\n ans = (A + B) / 2\n\n else:\n ans = \'IMPOSSIBLE\'\n\n print(ans)\n\n\nif __name__ == "__main__":\n main()', '# -*- coding: utf-8 -*-\n\ndef main():\n\n A, B = map(int, input().split(...
['Wrong Answer', 'Accepted']
['s242562401', 's364564264']
[9188.0, 9040.0]
[25.0, 28.0]
[220, 221]
p02957
u114366889
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
["A,B = map(int,input().split())\nif (abs(A-B)/2) % 1 != 0:\n\tprint('IMPOSSIBLE')\nelse:\n\tprint(int(abs(A-B)/2))", "A,B = map(int,input().split())\nif (abs(A-B)/2) % 1 != 0:\n\tprint('IMPOSSIBLE')\nelse:\n\tprint(int(min(A,B)+abs(A-B)/2))"]
['Wrong Answer', 'Accepted']
['s006465926', 's334717657']
[2940.0, 2940.0]
[18.0, 17.0]
[107, 116]
p02957
u115102935
2,000
1,048,576
We have two distinct 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(iint, input().split())\n\nx = a+b\nif x%2 == 1:\n print('IMPOSSIBLE')\nelse:\n print('{}',x//2)", "# -*- coding: utf-8 -*-\na, b = map(int, input().split())\n \nx = a+b\nif x%2 == 1:\n print('IMPOSSIBLE')\nelse:\n print('{}'.format(x//2))"]
['Runtime Error', 'Accepted']
['s538843861', 's044652778']
[2940.0, 2940.0]
[17.0, 18.0]
[126, 134]
p02957
u115597223
2,000
1,048,576
We have two distinct 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\nif (B-A)%2==0:\n print((B-A)/2+A)\nelse:\n print("IMPOSSIBLE")', 'A , B = [int(i) for i in input().split()]\n\nif B>A: \n if (B-A)%2==0:\n print((B-A)/2)\n else:\n print("IMPOSSIBLE")\nelse:\n if (A-B)%2==0:\n print((A-B)/2)\n else...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s115621267', 's464788999', 's496939087', 's693846454', 's884495401', 's440842029']
[2940.0, 3060.0, 2940.0, 3060.0, 2940.0, 3060.0]
[17.0, 17.0, 17.0, 18.0, 17.0, 17.0]
[108, 220, 106, 224, 232, 234]
p02957
u116002573
2,000
1,048,576
We have two distinct 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:\n print(1) \nelif A % 2 != B % 2:\n print("IMPOSSIBLE")\nelse:\n K = (A+B) // 2\n if abs(A-K) == abs(B-K):\n print(K)\n else:\n print("IMPOSSIBLE")', 'A, B = list(map(int, input().split())\n\nif A == B:\n print(1)\n return\n ...
['Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s038040498', 's617461493', 's738083120', 's429454040']
[2940.0, 2940.0, 2940.0, 3060.0]
[18.0, 17.0, 17.0, 17.0]
[220, 272, 283, 251]
p02957
u116124892
2,000
1,048,576
We have two distinct 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 % 2 == B % 2 else print("IMPOSSIBLE)', 'A, B = map(int, input().split())\nprint((A + B) // 2) if A % 2 == B % 2 else print("IMPOSSIBLE")']
['Runtime Error', 'Accepted']
['s857659942', 's972967993']
[8980.0, 9100.0]
[28.0, 25.0]
[94, 95]
p02957
u116233709
2,000
1,048,576
We have two distinct 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(c/2)\nelse:\n print("IMPOSSIBLE")\n', 'a,b=int(input().split())\nc=a+b\nif c%2==0:\n print(c/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=int(input().split())\...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Accepted']
['s112988048', 's148792928', 's191091154', 's435320935', 's625421621', 's233928848']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 17.0]
[87, 82, 94, 88, 92, 92]
p02957
u120485519
2,000
1,048,576
We have two distinct 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)\nprint(b)\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"]
['Wrong Answer', 'Accepted']
['s266014311', 's749564468']
[2940.0, 2940.0]
[17.0, 17.0]
[130, 111]
p02957
u121698457
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
["print((lambda x:('IMPOSSIBLE' if (x[0]+x[1])%2==1 else (x[0]+x[1])/2))(list(map(int,input().split()))))", "print((lambda x:('IMPOSSIBLE' if (x[0]+x[1])%2==1 else (x[0]+x[1])//2))(list(map(int,input().split()))))"]
['Wrong Answer', 'Accepted']
['s112413961', 's262399362']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 104]
p02957
u122195031
2,000
1,048,576
We have two distinct 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_ = input().split()\na = int(input_[0])\nb = int(input_[1])\n\nd = a + b\nc = (a + b) / 2\nif d % 2 == 0:\n if a != b:\n print(c)\nelse:\n print("IMPOSSIBLE")', 'input_ = input().split()\na = int(input_[0])\nb = int(input_[1])\n\nd = a + b\nc = round((a + b) / 2)\nif d % 2 == 0:\n if a != b:\n ...
['Wrong Answer', 'Accepted']
['s023117325', 's102490758']
[2940.0, 2940.0]
[17.0, 17.0]
[166, 173]
p02957
u122994151
2,000
1,048,576
We have two distinct 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\nmod = 10**9+7\np = list(input())\n# p = list("?"*10**4)\n\n\ndp = np.zeros(13, dtype=int)\ndp[0] = 1\nmul = 1\nfor key in reversed(p):\n new_dp = np.zeros(13, dtype=int)\n if key == "?":\n for i in range(10):\n for j in range(13):\n new_dp[(j + i * mul) % 1...
['Runtime Error', 'Runtime Error', 'Accepted']
['s104768389', 's452473607', 's939906576']
[14436.0, 12516.0, 2940.0]
[150.0, 148.0, 17.0]
[592, 591, 129]
p02957
u123745130
2,000
1,048,576
We have two distinct 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())\nl=max(a-b,b-a)\nprint(min(a,b)+l)', 'a,b=map(int,input().split())\nl=max(a,b)-min(a,b)\nif l%2!=0:\n print("IMPOSSIBLE")\nelse:\n print(min(a,b)+l//2)\n']
['Wrong Answer', 'Accepted']
['s774648829', 's511381489']
[2940.0, 2940.0]
[17.0, 17.0]
[61, 111]
p02957
u124025116
2,000
1,048,576
We have two distinct 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())\nans=(x+y)/2\nif (y-x) % 2 == 0:\n print(ans)\nelse:\n print("IMPOSSIBLE")', 'a,b = map(int,input().split())\nk=abs((a-b)/2)\nif a%2!=b%2:\n print("IMPOSSIBLE")\nelse:\n print(k)', 'a,b = map(int,input().split())\nk=abs((a-b)/2)\nif type(k)==int:\n print(k)\nelse:\n print("IMPOSSI...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s386386954', 's742760454', 's754248164', 's793149975', 's902234098', 's752876643']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 3188.0]
[17.0, 17.0, 18.0, 17.0, 17.0, 18.0]
[102, 97, 101, 98, 96, 109]
p02957
u127499732
2,000
1,048,576
We have two distinct 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<=0 else "IMPOSSIBLE")', 'a,b=map(int,input().split())\nprint((a+b)//2 if (a+b)%2==0 else "IMPOSSIBLE")']
['Runtime Error', 'Wrong Answer', 'Accepted']
['s405261113', 's523032667', 's687971015']
[3064.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[75, 72, 76]
p02957
u129543741
2,000
1,048,576
We have two distinct 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("IMIMPOSSIBLE")\nelse:\n print(a+b)//2', 'a,b=map(int, input().split())\nif (a+b)%2==1:\n print("IMPOSSIBLE")\nelse:\n print((a+b)//2)']
['Runtime Error', 'Accepted']
['s541831615', 's365598034']
[2940.0, 2940.0]
[17.0, 17.0]
[89, 90]
p02957
u130900604
2,000
1,048,576
We have two distinct 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=abs(a-b)/2\nif ans==int(ans):\n print(ans)\nelse:\n print("IMPOSSIBLE")\n', 'a,b=map(int,input().split())\nans=abs(a+b)/2\nif ans==int(ans):\n print(ans)\nelse:\n print("IMPOSSIBLE")\n', 'a,b=map(int,input().split())\nans=abs(a-b)/2\nif ans is not int:\n ans="IMPOSSIBLE"\nprint(...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s182899647', 's617446204', 's821345349', 's999394416', 's390039955']
[2940.0, 2940.0, 2940.0, 2940.0, 9152.0]
[17.0, 17.0, 17.0, 19.0, 26.0]
[103, 103, 92, 91, 162]
p02957
u131406102
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
["a, b = map(int, input().split())\nif (a+b)%2 == 0:\n print((a+b)/2)\nelse:\n print('IMPOSSIBLE')", "a, b = map(int, input().split())\nif (a+b)%2 == 0:\n print(int((a+b)/2))\nelse:\n print('IMPOSSIBLE')"]
['Wrong Answer', 'Accepted']
['s941905872', 's049208529']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 103]
p02957
u131406572
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
['a,b=map(int,input().split())\ns=(a+b)/2\nif s%1!=0 or a==b:\n print(s)\nelse:\n print("IMPOSSIBLE")', '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())\ns=(a+b)/2\nif s%1==0:\n print(s)\nelse:\n print("IMPOSSIBLE")', "a,b=map...
['Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s091538001', 's373258288', 's439017862', 's575293583', 's666119957', 's928010924']
[2940.0, 2940.0, 2940.0, 2940.0, 3188.0, 2940.0]
[18.0, 17.0, 17.0, 17.0, 18.0, 17.0]
[100, 93, 92, 93, 86, 98]
p02957
u132687480
2,000
1,048,576
We have two distinct 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 = list(map(int, input().split()))\nab = abs(a-b)\nprint(int((ab+1)/2) if ab % 2 == 0 else "IMPOSSIBLE")', 'import math\na,b = list(map(int, input().split()))\nab = abs(a-b)\n_max = max(a,b)\nprint(_max - int(ab/2) if ab % 2 == 0 else "IMPOSSIBLE")']
['Wrong Answer', 'Accepted']
['s238350546', 's443940165']
[2940.0, 2940.0]
[17.0, 17.0]
[117, 136]
p02957
u132972990
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
['a, b = int(input())\na, b = int(a), int(b)\nif (a + b) % 2 == 0:\n \tprint((a + b) // 2)\nelse:\n \tprint("IMPOSSIBLE")', 'a, b = input().split()\na, b = int(a), int(b)\nif (a + b) % 2 == 0:\n \tprint("YES")\nelse:\n \tprint("NO")', 'a, b = input().split()\na, b = int(a), int(b)\nif (a + b) % 2 == 0:\n print((...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s393694619', 's511171596', 's987276418']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[114, 102, 119]
p02957
u133091725
2,000
1,048,576
We have two distinct 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()\nnum1=int(a[0])\nnum2=int(a[1])\nk=(num1+num2)/2\nif type(k)=="float":\n print("IMPOSSIBLE")\nif type(k)=="int":\n print(k)', 'a=input().split()\nnum1=int(a[0])\nnum2=int(a[1])\nk=(num1+num2)/int(2)\nif (num1+num2)%int(2)!=0:\n print("IMPOSSIBLE")\nif (num1+num2)%int(2)==0:\n print(int...
['Wrong Answer', 'Accepted']
['s684516843', 's371875766']
[2940.0, 3060.0]
[17.0, 17.0]
[141, 163]
p02957
u135116520
2,000
1,048,576
We have two distinct 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-K==-(B-K):\n print(K)\nelse:\n print("IMPOSSIBLE")\n', 'A,B=map(int,input().split())\nif (A+B)%2==0:\n C=(A+B)/2\n print(C)\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(...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s541273887', 's751464129', 's989792634', 's546082558']
[3316.0, 2940.0, 2940.0, 2940.0]
[21.0, 17.0, 17.0, 17.0]
[84, 94, 88, 89]
p02957
u135197221
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
['\ndef Input():\n return mapt(int, input().split(" "))\n\n\ndef main():\n a, b = Input()\n if a % 2 != b % 2:\n print("IMPOSSIBLE")\n else:\n print((a+b)//2)\n\nmain()', 'def mapt(fn, *args):\n return tuple(map(fn, *args))\n\n\ndef Input():\n return mapt(int, input().split(" "))\n\n\nd...
['Runtime Error', 'Accepted']
['s385829086', 's395518518']
[8992.0, 9120.0]
[25.0, 26.0]
[181, 236]
p02957
u135847648
2,000
1,048,576
We have two distinct 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 = abs((A-B)/2)\nans2 = abs((A-B)//2)\nif ans == ans2:\n print(int(ans))\nelse:\n print("IMPOSSIBLE")', 'A,B = map(int,input().split())\nans = abs((A+B)/2)\nans2 = abs((A+B)//2)\nif ans == ans2:\n print(int(ans))\nelse:\n print("IMPOSSIBLE")']
['Wrong Answer', 'Accepted']
['s839283150', 's683166855']
[2940.0, 2940.0]
[17.0, 17.0]
[132, 132]
p02957
u136811344
2,000
1,048,576
We have two distinct 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_ba = B-A\nif diff_ba % 2 == 0:\n print(A + diff_ba)\nelse:\n print("IMPOSSIBLE")', 'A, B= map(int, input().split())\ndiff_ba = B-A\nif diff_ba % 2 == 0:\n print(A + diff_ba//2)\nelse:\n print("IMPOSSIBLE")']
['Wrong Answer', 'Accepted']
['s943396009', 's386782581']
[2940.0, 2940.0]
[17.0, 17.0]
[115, 118]
p02957
u137226361
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
["a, b = sorted(map(int, input().split()))\n\nif (b-a)%2==0:\n print(int((b-a)/2))\nelse:\n print('IMPOSSIBLE')", "a, b = sorted(map(int, input().split()))\n\nif (b-a)%2==0:\n print(int((b+a)/2))\nelse:\n print('IMPOSSIBLE')"]
['Wrong Answer', 'Accepted']
['s061566657', 's979667221']
[3064.0, 3064.0]
[17.0, 17.0]
[110, 110]
p02957
u140191608
2,000
1,048,576
We have two distinct 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()))\nasn = (A + B) /2\nif asn.is_integer() == True:\n print(asn)\nelse:\n print('IMPOSSIBLE')", "A , B = (map(int , input().split()))\nasn = (A + B) /2\nif asn.is_integer() == True:\n print(int(asn))\nelse:\n print('IMPOSSIBLE')"]
['Wrong Answer', 'Accepted']
['s961554108', 's444671909']
[2940.0, 2940.0]
[18.0, 17.0]
[127, 132]
p02957
u143565147
2,000
1,048,576
We have two distinct 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 = abs(a-b)\nif diff % 2 == 1:\n print("IMPOSSIBLE")\nelse:\n print(diff // 2)\n', 'a, b = map(int, input().split())\nif abs(a-b) % 2 == 1:\n print("IMPOSSIBLE")\nelse:\n print((a + b) // 2)\n']
['Wrong Answer', 'Accepted']
['s613964793', 's875303778']
[2940.0, 2940.0]
[17.0, 17.0]
[118, 109]
p02957
u145600939
2,000
1,048,576
We have two distinct 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('IMPOSSIBLE')\nelse:\n print((a+b)//2)\n", "a,b = map(int,input().split())\nif (a^b)&1:\n print('IMPOSSIBLE')\nelse:\n print((a+b)//2)\n"]
['Wrong Answer', 'Accepted']
['s631872092', 's531383518']
[2940.0, 2940.0]
[17.0, 17.0]
[85, 89]
p02957
u146803137
2,000
1,048,576
We have two distinct 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()) │abc136 abc138 abc140 abc142 abc144 abc146 abc148\nk = a+b │abc137 abc139 abc141 abc143 abc145 abc147 python\nif k%2: │(base...
['Runtime Error', 'Accepted']
['s797876002', 's473684998']
[8936.0, 9152.0]
[20.0, 27.0]
[602, 93]
p02957
u152638361
2,000
1,048,576
We have two distinct 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())\nH = list(map(int,input().split()))\nans ="Yes"\nhighest = H[0]\nfor i in range(N-1):\n if H[i+1]<highest-1:\n ans ="No"\n break\n highest = max(highest,H[i+1])\n\nprint(ans)', 'A, B = map(int,input().split())\n\nif (A+B)%2 == 0:\n print((A+B)//2)\nelse:\n print("IMPOSSIBLE"...
['Runtime Error', 'Accepted']
['s115247394', 's590502400']
[3060.0, 2940.0]
[17.0, 18.0]
[201, 99]
p02957
u152736941
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
['import math \na,b=(int(x) for x in input().split())\nprint(a)\nprint(b)\nif(a%2 != b%2):\n print("IMPOSSIBLE")\nelse:\n k=int (a+b)/2\n print(math.floor(k))', 'import math \na,b=(int(x) for x in input().split())\nif(a%2 != b%2):\n print("IMPOSSIBLE")\nelse:\n k=int (a+b)/2\n print(math.floor(k))\n\n...
['Wrong Answer', 'Accepted']
['s431822171', 's922067956']
[3060.0, 2940.0]
[18.0, 17.0]
[157, 145]
p02957
u152893557
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
['ini=input().split()\n\nN=int(ini[0])\nK=int(ini[1])\n\nmod=(N+K)%2\nif mod==1:\n print("IMPOSSIBLE")\nelse:\n print((N+K)/2)', 'ini=input().split()\n\nN=int(ini[0])\nK=int(ini[1])\n\nmod=(N+K)%2\nif mod==1:\n print("IMPOSSIBLE")\nelse:\n print(int((N+K)/2))']
['Wrong Answer', 'Accepted']
['s921489990', 's142268269']
[2940.0, 2940.0]
[17.0, 17.0]
[121, 126]
p02957
u153419200
2,000
1,048,576
We have two distinct 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().aplit())\nif abs(a-c)==abs(b-c):\n print(c)\nelse:\n print('IMPOSSIBLE')", "a,b=map(int,input().split())\nc=(a+b)/2\nif (a+b)%2==0:\n print(c)\nelse:\n print('IMPOSSIBLE')\n", "a,b=map(int,input().split())\nif abs(a-c)==abs(b-c):\n print(c)\nelse:\n print('IMPOSSIBLE')\n", "a,b=map(int,input...
['Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s135682863', 's534026563', 's575394656', 's668821055', 's677947286', 's541134929']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0, 18.0]
[90, 93, 91, 93, 93, 89]
p02957
u155687575
2,000
1,048,576
We have two distinct 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())\nK = (a+b)/2\nif isinstance(K, float):\n\tprint('IMPOSSIBLE')\nelse:\n\tprint(K)", "a, b = map(int, input().split())\nK = (a+b) / 2\nif isinstance(K, float):\n\tprint('IMPOSSIBL...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s049481700', 's111164823', 's216547296', 's818470453']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[100, 106, 125, 105]
p02957
u159574168
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
['str = input()\na = int(str.split(" ")[0])\nb = int(str.split(" ")[1])\n\nif((a-b)%2!=0):\n print("IMPOSSIBLE")\nelse:\n print(int(abs(a-b)/2))', 'str = input()\na = int(str.split(" ")[0])\nb = int(str.split(" ")[1])\n\nk = int(abs(a+b)/2)\n\nif((a+b)%2!=0):\n print("IMPOSSIBLE")\nelse:\n print(k)']
['Wrong Answer', 'Accepted']
['s256695969', 's912534809']
[3060.0, 2940.0]
[17.0, 17.0]
[137, 144]
p02957
u161842412
2,000
1,048,576
We have two distinct 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 - K | = | B - K |\nA, B = map(int, input().split())\n\nup = (A**2-B**2)\ndown = (2 * ( A-B ))\n\nif up % down == 0:\n\tprint(up/down)\nelse:\n\tprint("IMPOSSIBLE")', '# | A - K | = | B - K |\nin = raw_input().split()\nA = in[0]\nB = in[1]\n\nK = (A**2-B**2) / 2 / ( A-B )', '# | A - K | = | B - K |\nraw = raw_in...
['Wrong Answer', 'Runtime Error', 'Runtime Error', 'Runtime Error', 'Accepted']
['s155470037', 's754007446', 's811020185', 's825451378', 's334861498']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 18.0]
[158, 99, 183, 159, 163]
p02957
u163501259
2,000
1,048,576
We have two distinct 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")']
['Runtime Error', 'Accepted']
['s018177862', 's821256316']
[3064.0, 2940.0]
[18.0, 17.0]
[98, 99]
p02957
u165114979
2,000
1,048,576
We have two distinct 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):\n if a[i] != i + 1:\n c+=1\n \nif c == 0 or c == 2:\n print('YES')\n \nelse:\n print('NO')\n", "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(...
['Runtime Error', 'Wrong Answer', 'Accepted']
['s777636349', 's862267489', 's966162801']
[9064.0, 8956.0, 9048.0]
[24.0, 29.0, 26.0]
[171, 108, 110]
p02957
u165516759
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
["a,b = list(map(int,input().split()))\nx = ( a + b )%2\ny = (a + b)/2\n\nif x ==0:\n print(y)\nelse:\n print('IMPOSSIBLE')", "a,b = list(map(int,input().split()))\nx = ( a + b )%2\ny = (a + b)//2\n\nif x ==0:\n print(y)\nelse:\n print('IMPOSSIBLE')"]
['Wrong Answer', 'Accepted']
['s879473112', 's328856698']
[2940.0, 2940.0]
[18.0, 17.0]
[120, 121]
p02957
u169138653
2,000
1,048,576
We have two distinct 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)%==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']
['s209481030', 's110661298']
[2940.0, 2940.0]
[17.0, 17.0]
[88, 90]
p02957
u169696482
2,000
1,048,576
We have two distinct 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\nif (a+b)%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(int(c))"]
['Wrong Answer', 'Accepted']
['s181723267', 's144234245']
[2940.0, 2940.0]
[17.0, 17.0]
[100, 105]
p02957
u170183831
2,000
1,048,576
We have two distinct 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 = abs(a - b)\nprint(diff // 2 if diff % 2 == 0 else 'IMPOSSIBLE')", "a, b = map(int, input().split())\nprint((a + b) // 2 if (a + b) % 2 == 0 else 'IMPOSSIBLE')\n"]
['Wrong Answer', 'Accepted']
['s284559877', 's241165463']
[2940.0, 2940.0]
[17.0, 17.0]
[102, 91]
p02957
u172010803
2,000
1,048,576
We have two distinct 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((max(a,b)-min(a,b))/2)', 'a,b=map(int,input().split(" "))\nif a%2 != b%2:\n print("IMPOSSIBLE")\nelse:\n print(int((a+b)/2))']
['Runtime Error', 'Accepted']
['s310556767', 's626096287']
[2940.0, 2940.0]
[18.0, 17.0]
[109, 100]
p02957
u173374079
2,000
1,048,576
We have two distinct 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 c = abs(c)\n print(c/2)\nelse:\n print("IMPOSSIBLE")', 'a,b = map(int,input().split())\nc = a+b\nif c % 2 == 0:\n print(int(c/2))\nelse:\n print("IMPOSSIBLE")']
['Wrong Answer', 'Accepted']
['s789966984', 's110339541']
[2940.0, 2940.0]
[17.0, 17.0]
[107, 99]
p02957
u175057555
2,000
1,048,576
We have two distinct 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==0:\n print((A+B)/2)\nelse:\n print("IMPOSSIBLE")', 'A,B=map(int,input().split())\nif ((A+B)/2)%1==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,...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s103885449', 's342587590', 's746396834', 's199464637']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[94, 96, 92, 98]
p02957
u175590965
2,000
1,048,576
We have two distinct 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())\n\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', 'Runtime Error', 'Wrong Answer', 'Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s079130376', 's237515706', 's279613108', 's340763092', 's624845253', 's797154258', 's409072571']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 31.0, 18.0, 17.0, 18.0, 17.0, 17.0]
[96, 101, 97, 97, 96, 96, 97]
p02957
u176674210
2,000
1,048,576
We have two distinct 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:utf8 -*-\n\na,b = map(int,input().split())\nans = (b - a) / 2 if (b - a) % 2 == 0 else 'IMPOSSIBLE'\nprint(ans)", "# -*- coding:utf8 -*-\n\nl = sorted(list(map(int,input().split())))\na, b = l[0], l[1]\nans = a + ((b - a) / 2) if (b - a) % 2 == 0 else 'IMPOSSIBLE'\nprint(ans)", "# -*- coding:utf8 -*-\n\n...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Runtime Error', 'Accepted']
['s017062261', 's237154854', 's347693172', 's864807462', 's879519994', 's106300907']
[3060.0, 3060.0, 3316.0, 2940.0, 3060.0, 3060.0]
[17.0, 17.0, 21.0, 17.0, 17.0, 17.0]
[120, 156, 118, 151, 146, 161]
p02957
u178432859
2,000
1,048,576
We have two distinct 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 abs(a-k) == abs(b-k):\n print(k)\nelse:\n print("IMPOSSIBLE")', 'a, b = map(int, input().split())\nk = int((a+b)/2)\nif abs(a-k) == abs(b-k):\n print(int(k))\nelse:\n print("IMPOSSIBLE")']
['Wrong Answer', 'Accepted']
['s294703205', 's063685568']
[2940.0, 2940.0]
[17.0, 18.0]
[112, 122]
p02957
u179285430
2,000
1,048,576
We have two distinct 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(int((A+B)/2))']
['Wrong Answer', 'Accepted']
['s449509108', 's653069163']
[2940.0, 2940.0]
[17.0, 17.0]
[98, 103]
p02957
u181195295
2,000
1,048,576
We have two distinct 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")', 'A, B = map(int , input().split())\n \nif ( A % 2 == B % 2 ):\n print((A + B) / 2)\...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s387070042', 's610156058', 's679133082', 's798594794', 's875530548', 's134921312']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 20.0, 18.0, 17.0, 17.0, 18.0]
[109, 108, 107, 113, 106, 118]
p02957
u183509493
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
['buri', 'buri\n', 'a,b=map(int,input().split())\nif a % 2 != b % 2:\n print("IMPOSSIBLE")\nelse:\n print((a + b) // 2)\n']
['Runtime Error', 'Runtime Error', 'Accepted']
['s503434896', 's785305680', 's258825475']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[4, 5, 98]
p02957
u183621365
2,000
1,048,576
We have two distinct 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 = a + b\nif c % 2:\n print('IMPOSSIBLE')\nelse:\n print(int(c / 2))", "a = int(input())\nb = int(input())\nc = a + b\nif c % 2 == 1:\n print('IMPOSSIBLE')\nelse:\n print(int(c / 2))", "a, b = map(int, input().split())\nc = a + b\nif c % 2:\n print('IMPOSSIBLE')\nel...
['Runtime Error', 'Runtime Error', 'Accepted']
['s287051182', 's560531378', 's876270826']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[105, 110, 104]
p02957
u183768769
2,000
1,048,576
We have two distinct 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\n\nif (a-b)%2 == 1:\n print("IMPOSSIBLE")\n\nelse:\n print((a+b)/2)\n', 'a = int(input())\nb = int(input())\n\nif (a-b)%2 == 1:\n print("IMPOSSIBLE")\n \nelse:\n print((a+b)/2)', 'a,b = (int(x) for x in input().split())\n\n\nif (a-b)%2 == 1:\n print("IMPOSSIBLE")\n\nels...
['Wrong Answer', 'Runtime Error', 'Accepted']
['s355978721', 's566619925', 's628344431']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[105, 99, 110]
p02957
u184339976
2,000
1,048,576
We have two distinct 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 K=(A+B)/2\n print(K)\nelse:\n print('impossible')", "A,B=map(int, input().split())\nif (A+B)%2 == 0:\n K=(A+B)/2\n print(K)\nelse:\n print('impossible')", "A,B=map(int, input().split())\nif (A+B)%2 == 0:\n K=(A+B)/2\n print(K)\nelse:\n print('IMPOSSIBLE')", "A,B...
['Runtime Error', 'Wrong Answer', 'Wrong Answer', 'Runtime Error', 'Accepted']
['s279467087', 's424933516', 's760897888', 's995378801', 's593624198']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0, 17.0]
[94, 97, 97, 94, 93]
p02957
u186121428
2,000
1,048,576
We have two distinct 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']
['s193859709', 's854429391']
[2940.0, 2940.0]
[17.0, 17.0]
[83, 84]
p02957
u187205913
2,000
1,048,576
We have two distinct 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']
['s518288288', 's675589199']
[2940.0, 2940.0]
[17.0, 17.0]
[93, 94]
p02957
u190178779
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
["import sys\nA,B = map(int,input().split())\n\nif not ( 0 <= A <= 10**9 and 0 <= B <= 10**9 ): sys.exit()\n\nif A % 2 != B % 2:\n print('IMPOSSIBLE')\n sys.exit()\nelse:\n print((A+B)/2)\n", "\nimport sys\nA,B = map(int,input().split())\n\nif not ( 0 <= A <= 10**9 and 0 <= B <= 10**9 ): sys.exit()\n\nif A % 2...
['Wrong Answer', 'Accepted']
['s714407449', 's008395025']
[9060.0, 9092.0]
[26.0, 28.0]
[186, 206]
p02957
u190406011
2,000
1,048,576
We have two distinct 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()]\nif (a + b) / 2 % 1 == 0:\n print(int(a + b / 2))\nelse:\n print("IMPOSSIBLE")', 'a, b = [int(i) for i in input().split()]\nif (a + b) / 2 % 1 == 0:\n print(int((a + b) / 2))\nelse:\n print("IMPOSSIBLE")']
['Wrong Answer', 'Accepted']
['s019810690', 's862217034']
[3064.0, 2940.0]
[17.0, 17.0]
[117, 119]
p02957
u194369107
2,000
1,048,576
We have two distinct 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')\n", "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']
['s399771911', 's671000600']
[2940.0, 2940.0]
[17.0, 17.0]
[96, 101]
p02957
u197427401
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
['package main\n\nimport (\n\t"fmt"\n)\n\nfunc main() {\n\tvar A, B int\n\tfmt.Scan(&A)\n\tfmt.Scan(&B)\n\tif (A + B) % 2 == 0 {\n\t\tfmt.Println((A + B) / 2)\n\t} else {\n\t\tfmt.Println("IMPOSSIBLE")\n\t}\n}\n', 'package main\n\nimport (\n\t"fmt"\n\t"math"\n)\n\nfunc main() {\n\tvar A, B int\n\tfmt.Scan(&A)\n\tfmt.Sc...
['Runtime Error', 'Runtime Error', 'Accepted']
['s072360131', 's111536480', 's182915514']
[2940.0, 2940.0, 2940.0]
[18.0, 17.0, 17.0]
[182, 190, 111]
p02957
u198905553
2,000
1,048,576
We have two distinct 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((A+B)/2)\nelse:\n print('IMPOSSIBLE')", "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 % 2 == 0:\n print((A+B)/2)\nelse:\n print("IMPOSSIBLE...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s460270284', 's498147663', 's942718931', 's099638402']
[2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0, 17.0]
[98, 100, 99, 107]
p02957
u199846743
2,000
1,048,576
We have two distinct 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 K % 2 == 0:\n print(int(K))\nelse:\n print("IMPOSSIBLE")', 'A,B=map(int,input().split())\nK = (A+B)/2\nif (A+B) % 2 == 0:\n print(int(K))\nelse:\n print("IMPOSSIBLE")']
['Wrong Answer', 'Accepted']
['s311226691', 's233206235']
[2940.0, 2940.0]
[17.0, 17.0]
[103, 107]
p02957
u200527996
2,000
1,048,576
We have two distinct 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 = A+B/2\nprint(K)\nif K.is_integer():\n print(math.floor(K))\nelse:\n print("IMPOSSIBLE")\n', 'A,B = map(int, input().split())\nK = (A**2-B**2)/(2*(A-B))\nif K%2 == 1:\n print("IMPOSSIBLE")\nelse:\n print("K")\n', 'A,B = map(int, input().split())\nK = (A**2-...
['Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Wrong Answer', 'Accepted']
['s216228366', 's349446712', 's392863923', 's395284262', 's414256376', 's818065473', 's886982750', 's829315318']
[2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0, 2940.0]
[17.0, 18.0, 18.0, 17.0, 17.0, 18.0, 18.0, 17.0]
[137, 116, 118, 130, 122, 148, 114, 143]
p02957
u201082459
2,000
1,048,576
We have two distinct integers A and B. Print the integer K such that |A - K| = |B - K|. If such an integer does not exist, print `IMPOSSIBLE` instead.
["a,b = map(int,input().split())\nif (a + b) % 2 == 0:\n print((a + b) / 2)\nelse:\n print('IMPOSSIBLE')", "a,b = map(int,input().split())\nif (a + b) % 2 == 0:\n print(int((a + b) / 2))\nelse:\n print('IMPOSSIBLE')"]
['Wrong Answer', 'Accepted']
['s258175701', 's196260932']
[2940.0, 2940.0]
[17.0, 17.0]
[104, 109]
p02957
u203022424
2,000
1,048,576
We have two distinct 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 = abs(a-b)\nif x%2 == 0:\n print(x)\nelse:\n print("IMPOSSIBLE")', 'a, b = map(int, input().split(" "))\nx = abs(a-b)\nif x%2 == 0:\n print(x/2)\nelse:\n print("IMPOSSIBLE")', 'a, b = map(int, input().split(" "))\nx = abs(a+b)\nif x%2 == 0:\n print(int(x/2))\nelse:\n print...
['Wrong Answer', 'Wrong Answer', 'Accepted']
['s344479053', 's837344200', 's013771136']
[2940.0, 2940.0, 2940.0]
[17.0, 17.0, 17.0]
[100, 102, 107]
p02957
u203211107
2,000
1,048,576
We have two distinct 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-Harmony\nX=map(int, input().split())\nK=(X[0]+X[1])/2\nif (X[0]+X[1])%2==0:\n print(K)\nelse:\n print("IMPOSSIBLE")', '#A-Harmony\nX=list(map(int, input().split()))\nK=(X[0]+X[1])/2\nif (X[0]+X[1])%2==0:\n print(int(K))\nelse:\n print("IMPOSSIBLE")']
['Runtime Error', 'Accepted']
['s065185870', 's014380975']
[2940.0, 2940.0]
[17.0, 17.0]
[118, 129]
p02957
u203843959
2,000
1,048,576
We have two distinct 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=int(input())\nX,Y=map(int,input().split())\n\nispos_X,ispos_Y=True,True\nif X<0:\n X=-X\n ispos_X=False\nif Y<0:\n Y=-Y\n ispos_Y=False\n\nif K%2==0 and (X+Y)%2==1:\n print(-1)\nelse:\n xx,yy=0,0\n vec_list=[]\n if K%2==0:\n while((X-xx)+(Y-yy)>2*K):\n if X-xx>K:\n xx+=K\n vec_list.app...
['Runtime Error', 'Accepted']
['s118735636', 's876165565']
[3192.0, 2940.0]
[18.0, 17.0]
[2145, 89]