← All problemsSign in

Chef Bakes Cake

CodeChefRating 397Open on judge ↗

Chef has baked $N$ cakes, each weighing $X$ kilograms. Now, he needs to deliver them. He has many vehicles, that he will use to transport the cakes. Each vehicle can carry at most $Y$ kilograms of cake. It is guaranteed that $Y \ge X$, so each vehicle can carry at least $1$ cake. How many vehicles will Chef need to transport all the cakes? ### Input - The first and only line of each test case

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