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

Автор Algorithmix, 13 месяцев назад, По-английски

In today's Div 1+2 E, I used a fenwick tree.

234313772 WA1 234313386 Accepted due to commenting that #define int ll

So why ? I had already been facing negative value for tc2 during contest and I got bored and abandoned it. But after contest I found that line was the reason.. WHY? I really can't figure out a reason.

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

»
13 месяцев назад, # |
Rev. 3   Проголосовать: нравится +24 Проголосовать: не нравится

It has something to do with memset. This 234321001 and this 234321479 workss maybe because int is 4 bytes and long long is 8 bytes