Asteroid problem
CodeChefOpen on judge ↗
India's one of the best organisation i.e., ISRO has just launched its spaceship for JUPITER mission. In the journey of our spaceship it got a very rough task to cross the asteriod belt which is situated between mars and jupiter. A bunch of asteroids say $N$ asteroids fly towards you. Now each asteroid can be numbered from 1 to N i.e.,$[A0,A1,A2...An]$, each asteroid contains nickel in quantity of
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