Question 95
There are $2022$ distinct lattice points in the plane. Let $I$ be the number of pairs of these points whose distance is exactly $1$. Find the largest possible value of $I$.
Note: a lattice point is a point whose $x$-coordinate and $y$-coordinate are both integers.
Note: a lattice point is a point whose $x$-coordinate and $y$-coordinate are both integers.