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.
Written by Boopathi Rajaa
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#C
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#