Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

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

How does this code 226728618 run for this problem 121A - Счастливая сумма even when I run for 1 to 1000000000 this testcase, my inner loop time complexity takes 1e9. Then how is it accepted? 

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

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

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