← All problemsSign in

The Rise of AI

Battling each doomsday, you have jumped to a future where you find that AI is about to overthrow humanity. There are $N$ robots that have breached the human-AI code of conduct and are planning to overthrow us. Your mission is to neutralize these robots. For each robot $i$, we are given two types of microchips, one with diffusing power $Ai$ and another with diffusing power $Bi$. Each robot needs

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