Friday, 2 September 2016

c++ - Why is scanf/printf faster than cin/cout?

I've made some programs and saw that scanf and printf are considerably faster than using cin and cout? Most of my programs clear the execution time limit, mostly 3 seconds or 5 seconds, on online compilers when using scanf/printf which exceeded the limit while using cin/cout.

No comments:

Post a Comment