← All problemsSign in

Fighting Ebola

CodeChefRating 3692Open on judge ↗

An analysis of the ongoing Ebola outbreak reveals that transmission of the virus occurs in social networks. Usually a social network is represented as an undirected graph G = (V, E), where V denotes the set of nodes and E denotes the set of edges. Each node in the graph is assigned an integer weight for it. At time t = 0, all the nodes of the graph are vulnerable. Node S of the graph has just be

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