Skip to content

Instantly share code, notes, and snippets.

@PedroRacchetti
Created September 8, 2020 18:25
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/6dc226a28317d0bbabdf8e3d9022f262 to your computer and use it in GitHub Desktop.
Save PedroRacchetti/6dc226a28317d0bbabdf8e3d9022f262 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 = getchar_unlocked());
for(;c>47 && c<58;c = getchar_unlocked()) {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