注意这里是将后台的所有数据都读入在计算 

#include<bits/stdc++.h>
using namespace std;
#define ll long long
namespace fastIO {
#define BUF_SIZE 100010
    //fread -> read
    bool IOerror = 0;
    inline char nc() {
        static char buf[BUF_SIZE], *p1 = buf + BUF_SIZE, *pend = buf + BUF_SIZE;
        if(p1 == pend) {
            p1 = buf;
            pend = buf + fread(buf, 1, BUF_SIZE, stdin);
            if(pend == p1) {
                IOerror = 1;
                return -1;
            }
        }
        return *p1++;
    }
    inline bool blank(char ch) {
        return ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t';
    }
    inline void read(int &x) {
        char ch;
        while(blank(ch = nc()));
        if(IOerror)
            return;
        for(x = ch - '0'; (ch = nc()) >= '0' && ch <= '9'; x = x * 10 + ch - '0');
    }
#undef BUF_SIZE
};
using namespace fastIO;

int main()
{
     int T;
    read(T);

}

 

相关文章:

  • 2022-12-23
  • 2021-09-12
  • 2021-09-28
  • 2022-01-07
  • 2022-12-23
  • 2021-09-10
  • 2021-11-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2018-08-21
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
相关资源
相似解决方案