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

Автор dush1729, история, 4 года назад, По-английски

Hi,

I was solving CYCLCSUM from recent Codechef Cook Off. I used segment tree to solve the problem. I got accepted when I set negative infinity as -1e15 and wrong answer when it is -1e18. I am probably getting wrong answer due to overflow.

So my question what should be the value of infinity in segment tree to avoid overflow?

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