← All problemsSign in

Rain might be a Pain

AryaKnight, the geniosity, has earned quite a fortune for himself by winning various CP contests and investing his money smartly. Being so rich he decides to buy $N$ cars for himself. He has a parking lot of size $10^9 * 10^9$ and he parks all of his imported cars there. Each parking spot is a square of size $1 * 1$ and can hold at most $1$ car. The positions of all the cars would be given as $N$

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