Codeforces celebrates 10 years! We are pleased to announce the crowdfunding-campaign. Congratulate us by the link ×

C++14 vs 11: IO speed with cin/cout?

Revision en2, by Chilli, 2018-05-11 22:24:20

It seems that in C++11, even with the standard ios::sync_with_stdio(0), cin.tie(0); hacks, has significantly slower I/O with cin/cout than C++14.

View these submissions:
- cin/cout && C++11: 2963ms here
- cin/cout && C++14: 1934ms here

With scanf/printf, this issue isn't there:
- scanf/printf && C++11: 2027ms here
- scanf/printf && C++14: 1887ms here

I was unaware of this. Does anybody have any explanations? Am I missing something specific about my submissions?

Thanks tonynater for the discussion.

Tags c++ 11, c++


  Rev. Lang. By When Δ Comment
en2 English Chilli 2018-05-11 22:24:20 18 (published)
en1 English Chilli 2018-05-11 22:11:46 794 Initial revision (saved to drafts)