Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

phantom11's blog

By phantom11, 13 years ago, In English
During my routine practice of topcoder problems, I was troubled a lot by the HourGlass Problem.
In the editorial the author talked about a different approach in the last paragraph but failed to explain it.
Can somebody please explain me why the formula works??
  • Vote: I like it
  • -10
  • Vote: I do not like it