Too Many Oranges
Chef has $N$ oranges with him. Each orange has either $10, 11, $ or $12$ slices. Chef wanted to eat **exactly** $K$ slices of orange. However, the oranges were too tasty, and Chef ended up eating all $N$ of them! Chef wasn't paying attention, so he didn't count the number of slices he ate, and he also doesn't know how many slices each orange had - the only thing he knows is that each orange has
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