apple_cut
CodeChefOpen on judge ↗
One hot summer day abhi and his friend sachu decided to buy a apple. They choose the biggest and the ripest one, in their opinion. After that the apple was weighed, and the scales showed w kilos. They rushed home, dying of thirst, and decided to divide the berry, however they faced a hard problem. sachu and abhi are great fans of even numbers, that's why they want to divide the apple in such a
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