Save us!
CodeChefOpen on judge ↗
Let me tell you about a city called Wonder Land. In Wonder Land, people are amiable and Interact with each other a lot. Everything was going on calm and smooth. But unfortunately, a disease that spares no one has started to roll out. The Government of Wonder Land has done an excellent job of spreading awareness about the disease. Now people are socially isolated. There are $N$ people in the ci
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