Picnic Buses
CodeChefOpen on judge ↗
Chef and his classmates are finally going on a picnic to Chefland. Somehow they got the opportunity to get to the picnic spot on Magic Buses. Magic Buses are special buses which can contain infinite number of people. All the students could go in a single bus but everyone wants to travel only with their friends and nobody else. You have been given two integers $N$ the number students in the class a
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