【模板】快读

inline int read(){
    int s=0,f=1;char ch=getchar();
    while(!isdigit(ch)) {if(ch=='-') f=-1;ch=getchar();}
    while(isdigit(ch)) s=s*10+ch-'0',ch=getchar();
    return s*f;
}
posted @ 2021-09-15 12:52  Themaxmaxmax  阅读(20)  评论(0编辑  收藏  举报