By UBERMENSCH., history, 3 years 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

3 years 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