Why is the ios_base::sync_with_stdio(false);cin.tie(NULL); not making speed of cin = scanf??

Revision en1, by deepanshujain088, 2021-03-31 18:16:02

I have submitted the same algorithm with different input streams (cin and scanf) , I used ios_base::sync_with_stdio(false);cin.tie(NULL); with the cin and cout but still got a high difference in speeds?

Can somebody explain??

The problem link that I submitted is this one-- https://codeforces.com/problemset/problem/368/B

and my two differnt solutions are of 111556695 and 111568920 on Mar/31/2021.

Tags #c++, #help, cin cout printf scanf, cin.tie, scanf/printf, cin/cout, #help me

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English deepanshujain088 2021-03-31 18:16:02 505 Initial revision (published)