← All problemsSign in

Interrogating Gangsters

CodeChefRating 2444Open on judge ↗

There is a party going on in a club situated in some city. N gangsters will attend that party. The i-th gangster comes to the party at the beginning of Si time and will leave the party at the end of Ei. At any time unit, the set of gangsters who are present in the party enjoy drinking together and become friends. After the party, the law enforcement agency in the city is suspecting that there has

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start