PICNIC TABLE ARRANGEMENT
CodeChefOpen on judge ↗
A group of students went for picnic. Teacher arranged tables in circle pattern for having their lunch. Before confirming, teacher want to check all possible seating arrangement. There are M circular tables and N students. If number of students is exact multiple of number of tables, number of students must be exactly N/M. If number of students is not exact multiple of M, then distribution of studen
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