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

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

So i was wondering about the Codeforces CPU speed so i wanted to make a TLE in an easy problem 630A i made an o(n^3) solution where n is 2^31-1 but still the solution gets accepted http://codeforces.me/contest/630/submission/34205932 any explications ? thnx

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

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +26 Проголосовать: не нравится

Compiler is too smart for you. Those loops are completely useless and compiler threw them out. Try godbolt to see what compiler does.