关于 FastIO
查看原帖
关于 FastIO
1000298
Vsinger_洛天依楼主2024/9/27 12:37
namespace FastIO{
    const char *I=(char*)mmap(0,1<<22,1,2,0,0);
    inline int read() {
        int x = 0,f = 0;
        while(*I<48){
            f|=*I++==45;
        }
        while(*I>47){
            x=x*10+(*I++&15);
        }
        return f ? -x : x;
    }
    char O[1<<22],*o=O;
    inline void print(int x) {
        if(x<0){
            *o++ = 45;
            x = -x;
        }
        if(x>9){
            print(x/10);
        }
        *o++ = 48 + x % 10;
    }
    //print(x),*o++='\n';
    //fwrite(O,1,o-O,stdout);
}
using namespace FastIO;

赛时这个快读 RE 了,喜提 0 分

问题来了,这个啥时候会 RE

2024/9/27 12:37
加载中...