Quirkless's blog

By Quirkless, history, 3 years ago, In English

Hey Guys, please I need your help. My submission https://codeforces.me/contest/1516/submission/135648061 to problem https://codeforces.me/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..

  • Vote: I like it
  • -5
  • Vote: I do not like it

»
3 years ago, # |
  Vote: I like it +1 Vote: I do not like it

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 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

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

»
3 years ago, # |
  Vote: I like it +16 Vote: I do not like it

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!!