← All problemsSign in

Farwell Party

After the last day of college ended many students went for the farewell party directly from college. There are N groups each of size (1 - 4) members. They decided to go together in cabs. Each cab can carry at most four passengers. What minimum number of cabs will the students need if all members of each group should ride in the same taxi (but one taxi can take more than one group)? ### Input - 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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start