← All problemsSign in

Defense System

The enemies of Flatland are planning on dropping several bombs on Flatland. Flatland can be represented as a 2 dimensional Cartesian plane. To decide where they will drop the bombs they follow a 2 step procedure. - Step 1: They write down the co-ordinates (x,y) of N points. Then for the ith point with some probability they select it for Step 2, otherwise they throw it away. - Step 2: After step

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