Блог пользователя Wildebeest

Автор Wildebeest, история, 8 лет назад, По-английски

I was trying to solve this problem for several days. I failed and read the editorial. But I couldn't understand the solution. Can someone please explain how they came up with that formula?

Thanks in advance :)

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится