RedSnow389's blog

By RedSnow389, history, 3 days ago, In English

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.

  • Vote: I like it
  • -21
  • Vote: I do not like it

»
3 days ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

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!

»
3 days ago, # |
  Vote: I like it 0 Vote: I do not like it

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

  • »
    »
    3 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

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

    • »
      »
      »
      2 days ago, # ^ |
        Vote: I like it -13 Vote: I do not like it

      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.

»
3 days ago, # |
  Vote: I like it 0 Vote: I do not like it

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