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

Автор neal, история, 6 недель назад, По-английски

Can anyone tell me why this submission is so slow? 275858049

It's $$$\mathcal{O}(N + Q)$$$ and should be very fast, but somehow it takes 1125 ms.

Meanwhile my in-contest code that uses lots of sets and does a bunch of nonsense only takes 561 ms: 275858229

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

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

Seems like it has something to do with the compiler as its ~300ms on C++17.

»
6 недель назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

I think it is something related to this blog: Slowdown bug affecting C++ (64 bit).

You can also check this weird TLE I got in Codeforces Round 899 (Div. 2).