Sauna Cred
CodeChefOpen on judge ↗
Max is an avid sauna visitor. Today he's chilling in the sauna with $n$ friends. Max knows that each friend is going to visit the steam room exactly once, and the $i$-th friend is going to enter the steam room at time $l_i$, and leave at time $r_i$ (time is measured in seconds since the start of the visit). Max also wants to make a single visit to the steam room, but he can still choose his enteri
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