Please subscribe to the official Codeforces channel in Telegram via the link ×

lbm364dl's blog

By lbm364dl, history, 3 months ago, In English

I'll leave it short. I got time limit because of big input so I started submitting some IO variations. I also decided to compare with using scanf, which should be faster, but for some reason using cin with ios_base::sync_with_stdio(false) shows about 400ms (120387767) while using scanf shows about 750ms (120392401). Am I doing something wrong? Why is scanf variant slower here?

Read more »

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