HadyMosaad's blog

By HadyMosaad, history, 4 years ago, In English

Those three Submissions of the same Code gives Different Verdicts! Could any one Explain that to me? Thanks in Advance - C++ 14 TLE 73879125 - C++ 17 TLE 73879041 - C++ 11 AC 73879450

  • Vote: I like it
  • +1
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by HadyMosaad (previous revision, new revision, compare).

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I'm not sure why the C++11 one is fast enough but if you replace endl with '\n' all of them will become a lot faster.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    it is because endl flush the output while \n don't but i need to know why c++11 is faster