Make Square
CodeChefOpen on judge ↗
Utkarsh has 4 sticks; a1, a2, a3, a4 of length $a, b, c, d$ respectively. He has been given a task to make a square by joining these sticks along the corners. For achieving this he is allowed to perform the following operation any number of times. **Operation:** Select any stick, and length and discard the length from the stick. Refer to the test cases for additional details. Can you help Utkars
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