Chef and Division
Chef understood multiplication well but he fell asleep in the division class at school. So, Chef's understanding of division was a bit strange. Let's call it *Chef's division*. In terms of normal division, Chef's division $\frac{x}{y}$ means: - While $x$ is divisible by $y$, divide $x$ by $y$ and repeat. (Of course, the division here is normal division) Some examples of Chef's divisions are: -
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