提交记录 19725


用户 题目 状态 得分 用时 内存 语言 代码长度
Tangninghaha 1000i. 【传统题】 A+B Problem Accepted 100 23.25 us 12 KB C++ 648 B
提交时间 评测时间
2023-07-21 15:29:04 2023-07-21 15:29:06
#include <cstdio>
static int sta[11];
inline int read() {
  int res = 0, fl = 1; char cha = getchar();
  while ((cha < '0' || cha > '9') && cha != '-') cha = getchar();
  if (cha == '-') fl = -1, cha = getchar();
  while (cha >= '0' && cha <='9') res = res * 10 + cha - '0', cha = getchar();
  return res * fl;
}
inline void write(int x) {
  if(x < 0) {
    x = -x;
    putchar('-');
  }
  int top = 0;
  do {
    sta[top++] = x % 10;
    x /= 10;
  } while (x);
  while (top) putchar(sta[--top] + 48);
}
int main() {
  int n, a, b;
  n = read();
  while (n--){
    a = read();
    b = read();
    write(a + b);
    putchar('\n');
  }
  return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #123.25 us12 KBAcceptedScore: 100


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