Silent People
CodeChefOpen on judge ↗
Chefland consists of $N$ cities. Each city has its own population. The population of the $i$th city is denoted by $P_i$. These people are weird as they do not talk to people who belong to the same city that they are in (That means for every $i$, people of the city $i$ do not talk with each other). People from a city talk with only people from their friend cities. Say city $i$ and city $j$ are fri
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