Accommodation
There are $B$ boys and $G$ girls who would like to take accommodation in a hotel. The hotel has infinitely many rooms, and each room with a positive number of occupants must satisfy the following conditions: - It must contain **at least** $X$ boys. - It must contain **at least** $Y$ girls. - It can contain **at most** $N$ people in total. Determine the minimum number of rooms required to accomm
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