← All problemsSign in

Alien Invasion

This jump of the broken time machine again instead of taking you home, takes you to a future where you find yourself stuck in an alien invasion. Aliens have $N$ spacecrafts (numbered from $0$ to $N-1$) to attack Earth and each spacecraft has a power $Pi$. You encounter a helpful alien explorer, named Chitti, who gives you an Alien Technology weapon. Your task here is to help humans destroy thes

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