标签:
1 inline void in(int &res) 2 { 3 char c; 4 while((c=getchar())<‘0‘||c>‘9‘); 5 res=c-‘0‘; 6 while((c=getchar())>=‘0‘&&c<=‘9‘) 7 res=res*10+c-‘0‘; 8 } 9 inline void out(int x) 10 { 11 if(x>9) out(x/10); 12 putchar(x%10+‘0‘); 13 }
标签:
原文地址:http://www.cnblogs.com/L-King/p/5316367.html