Game of Numbers
CodeChefOpen on judge ↗
Chef and his friend Monk were playing a game of numbers. Monk writes 4 numbers randomly on the board and challenges chef to guess 3 numbers $a, b, c$ so that their Pairwise sum (i.e. $a + b, b + c, a + c$) and the total sum (i.e., $a + b + c$) is on the board. Help Chef to guess the Number a, b, c. $NOTE:$ a, b and c can be equal (i.e., it is also possible that a=b=c). ### Input -The first li
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