A. 平衡点

    Type: RemoteJudge 2000ms 1024MiB

平衡点

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目大意

给你两个数 A,BA,B,找出使得 AK=BK|A-K|=|B-K|KK 的值。若没有输出 IMPOSSIBLE

输入

输入一行两个整数A,BA,B

输出

如果存在符合条件的KK,则输出对应内容,否则输出IMPOSSIBLE

2 16
9
0 3
IMPOSSIBLE
998244353 99824435
549034394

提示

  • 输入都是整数。
  • 0  A, B  109 0\ \leq\ A,\ B\ \leq\ 10^9

样例解释1

2  9 = 7 |2\ -\ 9|\ =\ 7 , 16  9 = 7 |16\ -\ 9|\ =\ 7 ,所以 9是满足条件的数

样例解释2

不存在满足条件的数

粒子2025年5月月赛

Not Attended
Status
Done
Rule
IOI
Problem
4
Start at
2025-4-27 0:00
End at
2025-5-30 8:00
Duration
2 hour(s)
Host
Partic.
16