• P is a convex, near regular 2023-sided polygon.

• Precisely 2022 of its sides have length 1, but the remaining side has a length different from 1.

Determine the maximum area of the polygon.

My first thought is that P is very close to a half-circle, with twice the radius and twice the area of a regular 2023-sided polygon. I can't do the math right now, though. And I would not be surprised if I was wrong.