提交记录 10068


用户 题目 状态 得分 用时 内存 语言 代码长度
MrFood 1000i. 【传统题】 A+B Problem Accepted 100 24.13 us 16 KB C++ 540 B
提交时间 评测时间
2019-08-11 20:27:19 2020-08-01 02:00:43
#include <cstdio>

inline void write(int x) {
  if (x < 0) {
    x = -x;
    putchar('-');
  }
  if (x > 9) write(x / 10);
  putchar(x % 10 + 48);
}
inline void write2(int x) {
if (x < 0) {
    x = -x;
    putchar('-');
  }
  static int sta[35];
  int top = 0;
  do {
    sta[top++] = x % 10, x /= 10;
  } while (x);
  while (top) putchar(sta[--top] + 48);
}
int main() {
	int n;
	scanf("%d", &n);
	for (int i = 1; i <= n; i++) {
		int a=0,b=0;
                scanf("%d%d",&a,&b);
                write2(a+b),putchar('\n');
	}
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #124.13 us16 KBAcceptedScore: 100


Judge Duck Online | 评测鸭在线
Server Time: 2024-04-20 22:45:06 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用