提交记录 6154


用户 题目 状态 得分 用时 内存 语言 代码长度
Garnol 1000i. 【传统题】 A+B Problem Accepted 100 31.31 us 16 KB C++ 766 B
提交时间 评测时间
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;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #131.31 us16 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-11-23 22:58:35 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠