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

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

Without fastio: 267723916 With fastio: 267765463

I feel like TCs should test the logic of the code rather than minute differences with regard to optimisations.

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

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

Yes, the same thing was happened in my case.

But, you should have optimized the code, as you are taking input 3 x 10^6 numbers!

»
22 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Your code gets AC without fastio: 267774400 (pikachu shocked emote)

»
22 месяца назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Inputs are larger precisely to check the logic and to not let codes with worse time complexity pass.