Skip to content

Instantly share code, notes, and snippets.

@PedroRacchetti
Created September 8, 2020 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PedroRacchetti/dce20d972632b1407a1a17075726125e to your computer and use it in GitHub Desktop.
Save PedroRacchetti/dce20d972632b1407a1a17075726125e to your computer and use it in GitHub Desktop.
void getint(int &x){
register int c = getchar_unlocked();
x = 0;
for(;(c<48 || c>57);c = gc());
for(;c>47 && c<58;c = gc()) {x = (x<<1) + (x<<3) + c - 48;}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment