标签:tor sdi return for flag 输入 getc opera code
打了一个用重载的读优,大家可以用用
struct FastIO {
template <typename T> FastIO& operator >> (T& In) {
In = 0;
char Ch = getchar ();
int Flag = 1;
for (; ! isdigit (Ch); Ch = getchar ()) if (Ch == ‘-‘) Flag = -1;
for (; isdigit (Ch); Ch = getchar ()) In = (In << 3) + (In << 1) + (Ch ^ 48);
In *= Flag;
return *this;
}
}fin;
用法:
int a, b;
fin >> a >> b;
cout << a << " " << b;
输入:
34 -34
输出:
34 -34
标签:tor sdi return for flag 输入 getc opera code
原文地址:https://www.cnblogs.com/binghun/p/14090791.html