chen_zhe @ 2018-11-06 11:28:39
noip能用fread吗……就是这样的东西:
char ibuf[1000050],*s=ibuf;
inline int read()
{
int x=0;
int f=1;
while (*s<48)
{
if (*s==45)
f=-1;
s++;
}
while (*s>32)
x=x*10+*s++-48;
return x*f;
}
char ouf[1000050],*t=ouf,res[20];
inline void output(int x)
{
static char *s=res;
if (!x)
*t++='0';
else
{
while (x>0)
{
*s++=x%10+48;
x/=10;
}
while (s!=res)
*t++=*--s;
}
}
程序开始之前fread(s=ibuf,1,1000050,stdin);
程序结束之前要fwrite(ouf,1,t-ouf,stdout);
by wxy_god @ 2018-11-06 11:29:03
前排
by wxy_god @ 2018-11-06 11:29:45
没见过这堆奇奇怪怪的东西
by bb机 @ 2018-11-06 11:30:30
没见过+1
by Viston @ 2018-11-06 11:30:46
可以
by 斯德哥尔摩 @ 2018-11-06 11:31:44
@chen_zhe 萌新?怪物。。。
by chen_zhe @ 2018-11-06 11:32:13
@斯德哥尔摩 我是真的萌新啊QAQ
by Viston @ 2018-11-06 11:34:06
@Viston 不过也没有用这个的必要
by feecle6418 @ 2018-11-06 11:34:48
萌新!!??
by Hono @ 2018-11-06 11:34:49
这种不应该抓住各种毒瘤问吗
by changruinian2020 @ 2018-11-06 11:35:24
萌新!!??x2