本宝宝问个小问题qwq~

学术版

$……$ @[xzz_233](/space/show?uid=23118) @[YoungNeal](/space/show?uid=56778)
by Arcturus1350 @ 2018-05-21 16:02:37


@[cn:苏卿念](/space/show?uid=57699) gets最快 ~~逃~~
by communist @ 2018-05-21 16:54:18


跨平台的最好方法是fread快读。 ```cpp namespace FastIO { inline unsigned char nextchar() { static const int BS = 1 << 22; static unsigned char buf[BS],*st,*ed; if( st == ed ) ed = buf + fread(st=buf,1,BS,stdin); return st == ed ? 0 : *st++; } inline uint getint() { uint ret = 0 , ch; while( !isdigit(ch=nextchar()) ); do ret = ret * 10 + ch - '0'; while( isdigit(ch=nextchar()) ); return ret; } } using FastIO::getint; ``` 这是不考虑负数的读入int版本。
by cmd2001 @ 2018-05-21 17:17:10


@[cmd2001](/space/show?uid=31907) 谢谢学长!$qwq$
by Arcturus1350 @ 2018-05-21 17:36:30


上一页 |