← All problemsSign in

Flippable Points

CodeChefRating 2989Open on judge ↗

You are given a set $S$ of $N$ distinct integer points in the $2D$ plane. Initially, each point has a color, either `red` or `green`. You have to perform some number of operations (possibly $0$) on this set of points such that all points are `green` after all operations. An operation is: - Choose some line that does not pass through any of the points in $S$. This line should also not pass throu

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