提交记录 28757


用户 题目 状态 得分 用时 内存 语言 代码长度
wululu 1000i. 【传统题】 A+B Problem Accepted 100 49.36 us 36 KB C++ 917 B
提交时间 评测时间
2025-12-16 15:57:05 2025-12-16 15:57:08
#include<bits/stdc++.h>
#define LL long long
#ifdef _WIN32
#define getchar_unlocked _getchar_nolock
#define putchar_unlocked _putchar_nolock
#endif
using namespace std;
void FAST_OS(bool p){
	if(p){
		ios::sync_with_stdio(0);
		cin.tie(nullptr);
	}
}
int read(){
	bool f = false;int x = 0;char c = 'x';
	while(!isdigit(c)){
		c = getchar_unlocked();
		if(c == '-'){
			f = !f;
		}
	}
	while(isdigit(c)){
		x = x * 10 + (c ^ 48);
		c = getchar_unlocked();
	}
	return f ? -x : x;
}
static char c[25];
void print(int x){
	unsigned int s = x;
	if(x < 0){
		s = -s;
		putchar_unlocked('-');
	}
	if(x == 0){
		putchar_unlocked('0');
		return;
	}
	int l = 0;
	while(s){
		c[++l] = s % 10 + '0';
		s /= 10;
	}
	while(l > 0){
		putchar_unlocked(c[l]);
		l--;
	}
}
signed main(){
	FAST_OS(0);
        int n = read();
        while(n--){
        int a = read(),b=read();print(a+b);putchar_unlocked('\n');
        }
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #149.36 us36 KBAcceptedScore: 100


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