Aw Jeez, Rick!
CodeChefOpen on judge ↗
Rick and Morty were on an adventure when Rick's portal gun broke and the only way back home was through the inter-dimensional energy tracks that Rick had set up. Consider this network of inter-dimensional tracks as an undirected graph, with each node of the graph being a dimension and the edges connecting these nodes being the tracks. The tracks have an energy consumption associated with them and
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