Finding Numbers
CodeChefOpen on judge ↗
Dora is standing in front of a castle door that has 4 numbers displayed on it in random order: a+b, b+c, a+c,a+b+c, where a,b,c are three positive numbers. Dora needs help to enter the castle and the castle opens if she finds a,b,c. Dora got one hint from then doorkeeper that some given numbers a,b,c can be equal and it is also possible that a=b=c. Constraints: 1<=a,b,c<=10000; input: Th
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