🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.It's required by C++
  2. B.It makes cin/cout much faster for large input and output
  3. C.It enables printf
  4. 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 →