← Back to List

24783번: Number Fun ↗

Solutions

Python 3
150 B | 150 chars
for i in range(int(input())):
  a, b, c = map(int, input().split())

  print("Possible" if c in [a+b, a-b, b-a, a*b, a / b, b / a] else "Impossible")