Last Updated: February 25, 2016
·
1.037K
· boopathi

Fast IO for C++ +ve integers

inline void frint(int *a){
  register char c=0;while (c<33) c=getchar_unlocked();*a=0;
  while (c>33){*a=*a*10+c-'0';c=getchar_unlocked();}
}
//usage
unsigned int x; frint(&x);

For all those using SPOJ, codechef.