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

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

How does this code 226728618 run for this problem 121A - Lucky Sum even when I run for 1 to 1000000000 this testcase, my inner loop time complexity takes 1e9. Then how is it accepted? 

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

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

Сodeforces compiles С++ code with the O2 optimization flag (https://codeforces.com/blog/entry/96344), and with this optimization the compiler is able to cope with simple summation of one number several times in one second)