Guardians for Rescue
CodeChefOpen on judge ↗
Yet another day, The Guardians of the Galaxy are in a different galaxy which has N-Planets. They are following a distress signal that they received and are looking for the whereabouts of the person that sent the distress signal. The distress signal contains the threat level T$i$ for each valid $i$ planet present in the galaxy. Assume that planets are placed in a straight line. After further decod
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