lotus.eater086's blog

By lotus.eater086, history, 12 months ago, In English,

Link: https://pastebin.com/FRTreAiJ

I come across this type of implementation for fast input of integers in geeksforgeeks.com site . Can this code be improved to input integers faster ? ( getchar_unlocked() doesn't work in Windows . )

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

12 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Yes it does significantly reduce time when input is very large

You can see the difference here:

3.46397 SEC

1.95974 SEC