标签:getch define sync 状态 mac osx ongl ifd for ==
#ifdef WIN32
#define LL "%I64d"
#else
#define LL "%lld"
#endif
scanf(LL,&a);
ios::sync_with_stdio(false)
void read(int &x)
{
x=0;int f=1;
char c=getchar();
while(!isdigit(c))
{
if(c=='-') f=-1;
c=getchar();
}
while(isdigit(c))
{
x=x*10+c-'0';
c=getchar();
}
x*=f;
}
char ch;
char buf[100000],*p1 = buf,*p2 = buf;
#define nc() p1==p2&&(p2=(p1=buf)+fread(buf,1,100000,stdin),p1==p2) ? EOF :*p1++;
#define read(x) x=0;ch=nc(); while(!isdigit(ch)) ch=nc(); while(isdigit(ch))x=x*10+ch-'0',ch=nc();
char s[80000000]
void print(int v)
{
int x=0,y=0
while(v)
{
x++;
y=y*10+v%10;
v/=10;
}
for(int i=1;i<=x;++i)
{
s[++l]=y%10+'0';
y/=10;
}
l++;
s[l]='\n';
}
标签:getch define sync 状态 mac osx ongl ifd for ==
原文地址:https://www.cnblogs.com/wxyww/p/9487034.html