Codeforces and Polygon may be unavailable from May 23, 4:00 (UTC) to May 23, 8:00 (UTC) due to technical maintenance. ×

Si_jo's blog

By Si_jo, history, 6 months ago, In English

Link. This problem appeared in ICPC Amritapuri 2022 Qualifier Round and here with lower constraints. Please help.

  • Vote: I like it
  • 0
  • Vote: I do not like it