Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define get getchar_unlocked
- inline void scand(int* i)
- {
- int n=0,p=get();
- while( p >= '0' && p <= '9') {
- n = (n<<3) + (n<<1) + p-'0' ,p=get();
- }
- if(p == '\n' || p == EOF)
- *i = n;
- return ;
- }
- int main()
- {
- int i;
- scand(&i);
- printf("%d\n",i);
- return 0;
- }
Add Comment
Please, Sign In to add comment