Problem 1
CodeChefOpen on judge ↗
Your friend has come to your house for a long time. You and your friend decide to play a guessing game. Your friend has guessed three distinct numbers x, y and z. He gives four numbers x+y, y+z, x+z, x+y+z to you. Now you have to tell him the numbers x, y and z. ###Input: Input will consist of a single line which contains four number x+y, y+z, x+z and x+y+z in this order only. ###Outpu
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start