提交记录 4209


用户 题目 状态 得分 用时 内存 语言 代码长度
skyline 1000i. 【传统题】 A+B Problem Accepted 100 19.02 us 12 KB C++11 602 B
提交时间 评测时间
2018-07-18 22:45:25 2020-07-31 22:41:07
#include<stdio.h>
int read(){
    int x=0;
    bool f=1;
    char c=getchar();
    while(c<33)c=getchar();
    if(c=='-')f=0,c=getchar();
    while(c>47)x=x*10+c-48,c=getchar();
    return f?x:-x;
}
int b[12],B;
void write(int x){
    
    B=0;
    if(!x){
        putchar('0'),putchar('\n');
        return;
    }
    if(x<0){
        putchar('-');
        x=-x;
    }
    while(x)b[++B]=x%10,x/=10;
    while(B)putchar(48+b[B--]);
    putchar('\n');
}
int main(){
    int n;
    n=read();
    for(int i=0;i<n;++i){
        int x,y;
        x=read(),y=read();
        write(x+y);
    }
    return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #119.02 us12 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-04-25 13:31:31 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用