Pollution Man
CodeChefOpen on judge ↗
Chotu has taken up the task of cleaning the streets of Praland. For this, he is responsible for picking up all the litter. Chotu has 2 options to dispose of the litter. He can either put it in a bag or burn it. The bags are produced by a machine, which will produce one bag which can store a prime number of items in it. The rest of the items will be burnt. Chotu can use exactly one bag to store t
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