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

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

Hey Guys, please I need your help. My submission https://codeforces.net/contest/1516/submission/135648061 to problem https://codeforces.net/contest/1516/problem/D is giving different outputs(on some online compiler vs codeforces compiler), on codeforces It's not showing the thing I wanted it to show, due to some overflow reasons, which I couldn't figure out from my code, please help me find it. I have literally wasted 2-3 hours figuring out why overflow, But didn't made any kind of progress. Even read some blogs about it, but..

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

»
3 года назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

powerr must be strictly lower than size of your sparse table, you put that it can also be equal to its size, which is incorrect

  • »
    »
    3 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Thanks bro, at least that error is gone. Now I need to find some more rectifications for getting AC.

»
3 года назад, # |
  Проголосовать: нравится +16 Проголосовать: не нравится

Thanks a lot for everyone who helped, finally problem is solved. And, from some downvotes, I can clearly understand some people couldn't endure my dumbness in lot of places in my earlier code. Anyway, I don't care, I will keep solving harder and harder questions ,until I overcome my dumbness, and prove my intelligence!!