提交记录 21118


用户 题目 状态 得分 用时 内存 语言 代码长度
White_Sun 1000i. 【传统题】 A+B Problem Accepted 100 64.88 us 36 KB C++ 539 B
提交时间 评测时间
2024-01-30 17:32:18 2024-01-30 17:32:20
#include<bits/stdc++.h>
#define f(i,a,b) for(int i=(a);i<=(b);i++)

namespace IO
{
	const int MAXSIZE=1<<10;
	char buf[MAXSIZE],*p1,*p2;
	#define gc()\
	(p1==p2&&(p2=(p1=buf)+fread(buf,1,MAXSIZE,stdin),p1==p2)?EOF:*p1++)
	void rd(int&x)
	{
		bool sign=0;x=0;char ch=gc();
		while(!isdigit(ch)){if(ch=='-')sign=1;ch=gc();}
		while(isdigit(ch)){x=(x<<1)+(x<<3)+(ch^48);ch=gc();}
		if(sign)x=-x;
	}
	
}
using namespace std;
using namespace IO;
int n,a,b;
int main()
{
	rd(n);
	f(i,1,n)
	{
		rd(a);rd(b);
		printf("%d\n",a+b);
	}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #164.88 us36 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2025-07-21 00:40:27 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠