← All problemsSign in

Missing Shoes

CodeChefRating 135Open on judge ↗

Chef owns several pairs of shoes, unfortunately he has so many that he lost track of them! Each pair of shoes consists of one left shoe and one right shoe. Looking at his collection, Chef counts $L$ left shoes and $R$ right shoes. What's the minimum number of shoes Chef is missing? ### Input - The only line of input will contain two space-separated integers $L$ and $R$ – the number of left

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start