Chef and the Website
CodeChefOpen on judge ↗
Chef runs a very busy cooking website. He has hired you as his data analyst. One particular day, Chef's website is visited $N$ times by $N$ distinct people. For the $i$th visit, you have the start time of the visit as $S_i$ and end time of the visit as $E_i$ given in terms of seconds passed since the start of that day. You need to answer $Q$ of Chef's question. In the $j$th question asked by Chef,
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