提交记录 6154
提交时间 |
评测时间 |
2018-09-28 19:51:54 |
2020-08-01 00:40:01 |
#include <stdio.h>
class Read
{
private:
inline char getc()
{
static char buf[1<<18], *fs, *ft;
return (fs == ft && (ft = (fs = buf)+fread(buf, 1, 1<<18, stdin)), fs == ft)? EOF: *fs++;
}
public:
inline int operator()()
{
int x = 0, flag = 1;
char ch;
ch = getc();
while(ch<'0' || ch>'9')
{
if(ch == '-')
flag = -1;
ch = getc();
}
while(ch>='0' && ch<='9')
{
x = x*10+ch-'0';
ch = getc();
}
return x*flag;
}
}read;
int main()
{
int a, b;
int n;
n = read();
while(n--)
{
a = read();
b = read();
printf("%d\n", a+b);
}
return 0;
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 31.31 us | 16 KB | Accepted | Score: 100 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2024-11-23 22:58:35 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠