Football Stadium
CodeChefOpen on judge ↗
Theres a football match going to be held in a stadium. There are lots of spectators waiting outside the stadium. Your job is to place them in the STANDS. The STANDS have fixed capacity, an Integer STRENGTH. You plan to divide the GROUP of spectators into two HALF smaller groups, and keep on dividing the smaller groups as well until you get groups that can fit in the STANDS. While dividing groups y
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