提交记录 29624


用户 题目 状态 得分 用时 内存 语言 代码长度
bpc 1000i. 【传统题】 A+B Problem Compile Error 0 0 ns 0 KB C++ 943 B
提交时间 评测时间
2026-08-05 17:08:11 2026-08-05 17:08:13
#ifdef _WIN32
	#define getchar _getchar_nolock
	#define putchar _putchar_nolock
#else
	#define getchar getchar_unlocked
	#define putchar putchar_unlocked
#endif
#include <cstdio>
#include <bits/stdc++.h>

template <typename T> inline void rd(T &x){
    x = 0; int f = 1; char ch = getchar();
    while(!isdigit(ch)){ if(ch == '-') f = -1; ch = getchar();}
    while(isdigit(ch)) x = (x<<1) + (x<<3) + (ch^48), ch = getchar();
    x *= f;
}
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 n,a,b;
int main() {
    rd(n);
    for (int i = 1; i <= n; i++) {
                rd(a);rd(b);
                write2(a+b),putchar('\n');
    }
    return 0;
}

CompilationN/AN/ACompile ErrorScore: N/A


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