← All problemsSign in

Control the Pollution

CodeChefRating 1450Open on judge ↗

There are two types of vehicles in Chefland. - **Bus** which has a capacity of $100$ people. - **Car** which has a capacity of $4$ people. There are $N$ people who want to travel from place $A$ to place $B$. You know that a single bus emits $X$ units of smoke while a single car emits $Y$ units of smoke in their journey from $A$ to $B$. You want to arrange some buses and cars to carry all these $

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