CHKPTS - Editorial

Take an example.
Let’s say there are only 2 points.
(1,1) and (2,2). Here, (x-y) is same for both of them.
Now consider c=2.
Can you shift any point to any other point?
No. You need to have 2 checkpoints.
The only reason why you are getting correct answer for sample input is that for c=1, all points in the same group can be shifted to all other points in the group.

1 Like