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

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

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
  • Проголосовать: не нравится

»
5 дней назад, # |
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!

»
5 дней назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

  • »
    »
    5 дней назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Using scanf and printf is again an optimisation that does not compliment testing the logic of the code

    • »
      »
      »
      4 дня назад, # ^ |
        Проголосовать: нравится -13 Проголосовать: не нравится

      I do not think you have a right idea of what optimization is.

      Your argument can be disproved by the fact that most competitive programmers use C++. For other languages, sometimes TL is scaled higher. Using C++ instead of Java is not an optimization.

»
5 дней назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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