imo-2025 / markdown /2025 /p1 /problem.md
pufanyi's picture
Refactor imo_2025.json: Consolidate problem statements and remove markdown files for problems 1-6
d7d1759

A line in the plane is called sunny if it is not parallel to any of the $x$-axis, the $y$-axis, and the line $x + y = 0$.

Let $n \geq 3$ be a given integer. Determine all nonnegative integers $k$ such that there exist $n$ distinct lines in the plane satisfying both of the following:

  • for all positive integers $a$ and $b$ with $a + b \leq n + 1$, the point $(a, b)$ is on at least one of the lines; and
  • exactly $k$ of the $n$ lines are sunny.