提交记录 29621


用户 题目 状态 得分 用时 内存 语言 代码长度
bpc 1000i. 【传统题】 A+B Problem Accepted 100 58.83 us 36 KB C++ 739 B
提交时间 评测时间
2026-08-05 15:57:11 2026-08-05 15:57:14
#include<bits/stdc++.h>
using namespace std;
#define BS 100
#define gc() getchar()
#define pc(x) putchar(x)
// #define pc(x) obuf[osz++]=(x)
#define D (c=gc(),isdigit(c))
#define tn (x<<3)+(x<<1)
char buf[BS],*ST,*ED,obuf[BS],osz,c;
template<typename T>inline void read(T &x){
	x=0;
	int flag=1;
	while(!D)flag=(c=='-'?-flag:flag);
	while(x=tn+(c&15),D);
	x=x*flag;
}
template<typename T>inline void write(T x){
	if(x>=10)write(x/10);
	pc((x%10)|'0');
}
// inline void putc(const char &c){pc(c);}
// inline void flush(){fwrite(obuf,1,osz,stdout);}
#undef BS
#undef gc
#undef D
#undef tn
int t, a, b;
int main() {
	read(t);
    while(t --) {
    	read(a);read(b);
    	a=a+b;
    	if(a<0)pc('-'),a=-a;
    	write(a);
    	pc('\n');
    }
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #158.83 us36 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2026-08-06 15:45:14 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠