处理大数输入的模板

inline int Read()
{
    int x = 0, f = 1, c = getchar();
    for (; !isdigit(c); c = getchar())
        if (c == '-')
            f = -1;
    for (;  isdigit(c); c = getchar())
        x = x * 10 + c - '0';
    return x * f;
}

 

posted @ 2018-04-12 20:48  姿态H  阅读(160)  评论(0编辑  收藏  举报