超级快读快写

namespace IO{
    char buf[1 << 20], *p1, *p2;
    #define gc() (p1 == p2 && (p2 = (p1 = buf) + fread(buf, 1, (1 << 20), stdin), p1 == p2) ? EOF : *p1++)
    template<typename T>
    inline T read() {
        T x = 0;
        char ch = gc();
        while(ch < '0' || ch > '9') ch = gc();
        while(ch >= '0' && ch <= '9') {x = (x << 3) + (x << 1) + ch - 48; ch = gc();}
        return x;
    }
    inline void write(int x) {
        static int sta[35];
        int top = 0;
        do{
            sta[top++] = x % 10, x /= 10;
        } while(x);
        while(top) putchar(sta[--top] + 48);
    }
}
using namespace IO;

int main() {
    int n = read<int>();
    write(n);
    return 0;
}
posted @ 2024-07-31 11:57  Brilliant11001  阅读(2)  评论(0编辑  收藏  举报