Ninjas in a cake
CodeChefOpen on judge ↗
Problem description. It's Atsi's birthday today and he is throwing a party! He decided to make his own cake instead of buying one so, he went out shopping. He bought the ingredients but he also found an odd store where he found some living mini ninjas. He bought the ninjas as he was overwhelmed by then. While preparing the cake, he mistakenly put the ninjas in it when they were sleeping. When 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