Olympic Village
CodeChefOpen on judge ↗
It is almost Olympic time, but the organizers fear that the entire Olympic village will not be ready in time given the slow progress of construction. The games are going to have **K** events (numbered from 1 to **K**), and **M** countries (numbered from 1 to **M**) have already confirmed sending their sportspersons to participate in one or more of these events, with one person participating in exa
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