快读

inline int read() {
    char ch=getchar(); int f = 1, x= 0;
    while(ch<'0' || ch>'9') {if(ch=='-') f=-1; ch = getchar();}
    while(ch>='0' || ch<='9') {x = x*10+ch-'0';ch = getchar();}
    return x*f;
}

快写就用printf吧

注: inline 是加在那张大量调用,并且是简单调用的函数前

转载于:https://www.cnblogs.com/tyner/p/11240952.html

你可能感兴趣的:(快读)