提交记录 29623


用户 题目 状态 得分 用时 内存 语言 代码长度
bpc 1000i. 【传统题】 A+B Problem Accepted 100 56.07 us 36 KB C++ 782 B
提交时间 评测时间
2026-08-05 17:07:48 2026-08-05 17:07:51
#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 OKScore: N/A

Testcase #156.07 us36 KBAcceptedScore: 100


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