Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Qualified's blog

By Qualified, history, 6 years ago, In English

I see people using "ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);" I personally use "ios::sync_with_stdio(0); cin.tie(0);" without the "cout.tie(0);". What is the difference? Is the first option faster than the second?

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

| Write comment?
»
6 years ago, hide # |
 
Vote: I like it +10 Vote: I do not like it

cout is not tied to anything by default. So, cout.tie(false) is useless.