← Quiz: STL Algorithms: all 10 questions
Quiz: STL Algorithms · Question 5 of 10
Why use ios::syncwithstdio(false) in contests?
Why use ios::sync_with_stdio(false) in contests?
- A.It's required by C++
- B.It makes cin/cout much faster for large input and output
- C.It enables printf
- D.It sorts the input
Answer & explanation
Correct answer: It makes cin/cout much faster for large input and output
It disconnects C++ streams from C stdio, removing a lot of overhead.
Can you get the rest right without peeking?
Take the timed Quiz: STL Algorithms quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →