标签:int nbsp 升级版 read color amp col return code
inline char get() { static char buf[1024]; static int pos=0,size=0; if(pos==size) { size=fread(buf,1,1024,stdin); pos=0; if(!size) return EOF; else return buf[pos++]; } else return buf[pos++]; } int read() { int sum=0,fh=1; char ch=get(); while(!(ch>=‘0‘ && ch<=‘9‘)) { if(ch==‘-‘) fh=-1; ch=get(); } while(ch>=‘0‘ && ch<=‘9‘ && ch!=EOF) sum=sum*10+ch-48,ch=get(); return sum*fh; }
升级版快读,fread
标签:int nbsp 升级版 read color amp col return code
原文地址:https://www.cnblogs.com/hsez-cyx/p/12286292.html