← All problemsSign in

Angry birds and Rio

Rio has bought $N$ apples for Nairobi and Tokyo. Ofcourse he wants to divide all the apples equally. An apple can either weigh **100 grams or 200 grams**. Also if Rio offends Tokyo or Nairobi, he might die. Thus, the total weight of the apple given to Nairobi must be equal to the total weight of the apples given to Tokyo. Unfortunately, Rio cannot cut any apple into two halves because he forgot

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