← Back to List

19572번: 가뭄(Small) ↗

Solutions

Python 3
147 B | 147 chars
x,y,z=map(int,input().split())
a = (x + y - z) /2
b = x - a
c = y - a

if a <= 0 or b <= 0 or c <= 0:
  print(-1)
else:
  print(1)
  print(a, b, c)