Triplets
Statement
Goal
Test for Pythagorean tripletsInput
Line 1: An integer A
Line 2: An integer B
Line 2: An integer B
Output
Line 1: An integer C if the numbers are part of a pythagorean triplet.
Else display a single String IMPOSSIBLE
Else display a single String IMPOSSIBLE
Constraints
0≤A,B,C≤10000
Example
Input
3 4
Output
5
Game modes
Fastest
Test cases
Simplest Test
Input
3
4
Output
5
Simplest Validator
Input
4
3
Output
5
Not a Triplet Test
Input
4
6
Output
IMPOSSIBLE
Not a Triplet Validator
Input
6
4
Output
IMPOSSIBLE
Reverse Test
Input
12
13
Output
5
Big Validator
Input
5
12
Output
13
Bigger Test
Input
7
24
Output
25
Bigger Validator
Input
24
25
Output
7
Impossible Test
Input
1
2
Output
IMPOSSIBLE
Impossible Validator
Input
3
2
Output
IMPOSSIBLE
Again Impossible Test
Input
15
16
Output
IMPOSSIBLE
Again Impossible Validator
Input
16
17
Output
IMPOSSIBLE
Different Test
Input
11
11
Output
0
Different Validator
Input
0
1
Output
1
Solution language
Solution
Stub generator input