deepanshujain088's blog

By deepanshujain088, history, 3 years ago, In English

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.

Full text and comments »

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