Miu meets Jelly
CodeChefOpen on judge ↗
*“Humanity is overrated”* Miu and Jelly are planning to meet again after a very long time to discuss their Human-Extinction project. There are $N$ cities **connected** with $(N - 1)$ **bi-directional** roads. Each city has an extroversion level $E[i]$. Since Miu is an introvert, she hates being around extroverted places. She calculates the irritation level $L$ at any city $C$ as the *
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