提交记录 16304


用户 题目 状态 得分 用时 内存 语言 代码长度
whatever 1000i. 【传统题】 A+B Problem Accepted 100 59.53 us 40 KB C++ 519 B
提交时间 评测时间
2021-06-20 09:12:09 2021-06-20 09:12:11
#pragma GCC optimize(3)
#include<bits/stdc++.h>
using namespace std;

inline char gc(){
    static char buf[1<<12],*p1=buf,*p2=buf;
    return (p1==p2)&&(p2=(p1=buf)+fread(buf,1,1<<21,stdin),p1==p2)?EOF:*p1++;
}
inline void read(int &x){
    char c=gc();x=0;int f=0;
    while(!isdigit(c)) {if(c=='-') f=1;c=gc();}
    while(isdigit(c)) x=x*10+c-'0',c=gc();
    if(f) x=-x;
}int a,b;int n;
int main() {
	
	read(n);
	for (int i = 1; i <= n; i++) {
		
        read(a),read(b);
        printf("%d\n",a+b);
	}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #159.53 us40 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2026-03-19 10:50:01 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠