#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <stdio.h>
struct IO_Tp {
char _I_Buffer[1<<12],_O_Buffer[1<<12],*_I_pos,*_O_pos;
IO_Tp(): _I_pos(_I_Buffer), _O_pos(_O_Buffer){fread(_I_Buffer, 1, 1<<12, stdin);}
~IO_Tp() { fwrite(_O_Buffer, 1, _O_pos - _O_Buffer, stdout); }
inline bool is_digit(register const char ch) { return '0'<=ch&&ch<='9';}
inline IO_Tp& operator>>(int& x)
{
register int res = 0,k = 1;
while (!is_digit(*_I_pos)){if (*_I_pos == '-')k = -1;_I_pos++;}
do (res = (res << 3) + (res << 1)) += (*_I_pos++) & 15;while (is_digit(*_I_pos));
x = (k == -1 ? -res : res);
return *this;
}
inline char getop(){while (!is_digit(*_I_pos))_I_pos++;return (*_I_pos++) & 15;}
inline IO_Tp& operator<<(register int n)
{
if (n < 0) {*_O_pos++ = '-';n = -n;}
static char _buf[20];
register char* _pos(_buf);
do *_pos++ = 48 + n % 10;while (n /= 10);
while (_pos != _buf)*_O_pos++ = *--_pos;
return *this;
}
inline IO_Tp& operator<<(register char ch){*_O_pos++ = ch;return *this;}
};
IO_Tp IO;
int main()
{
int n,a,b;
IO >> n;
while (n--) {IO >> a >> b;IO << a + b << '\n';}
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 15.09 us | 32 KB | Accepted | Score: 100 | 显示更多 |