提交记录 6659


用户 题目 状态 得分 用时 内存 语言 代码长度
jxk706060666 1000i. 【传统题】 A+B Problem Accepted 100 69.52 us 40 KB C++ 483 B
提交时间 评测时间
2018-11-01 20:07:00 2020-08-01 00:48:02
#include<bits/stdc++.h>
using namespace std;

char getch()
{
	static char buf[1<<23],*p1=buf,*p2=buf;
	return p1==p2&&(p2=(p1=buf)+fread(buf,1,1<<23,stdin),p1==p2)?EOF:*p1++;
}

void read(int &x)
{
	x=0;
	char c=getch(),last=' ';
	while(c<'0'||c>'9')
	{
		last=c;
		c=getch();
	}
	while(c>='0'&&c<='9')
	{
		x=x*10+(c-'0');
		c=getch();
	}
	if(last=='-') x=~x+1;
}

int n,a,b;

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 #169.52 us40 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2026-04-09 17:48:28 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠