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

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

The attempt: 196181712

The Loop:

long long cnt = 1e12;
long long A = 0;
while (cnt--) {
    A++;
}

I am trying to know how many operations of each type I can execute in 1 second on Codeforces, it was supposed to be trivial but lol, does anyone know how to calculate this on my own, or what am I doing wrong in my code?

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

»
15 месяцев назад, # |
  Проголосовать: нравится +25 Проголосовать: не нравится

Compiler optimizes it to A=1e12

»
15 месяцев назад, # |
  Проголосовать: нравится +41 Проголосовать: не нравится

This is because Codeforces secretly has quantum supercomputers which can do 1e18 operations per second. The thing is that it does 1e18 operations only when you intentionally try to get TLE.