提交记录 9000


用户 题目 状态 得分 用时 内存 语言 代码长度
CYJian 1000i. 【传统题】 A+B Problem Accepted 100 46.39 us 44 KB C++ 1.16 KB
提交时间 评测时间
2019-04-01 15:14:36 2020-08-01 01:28:34
#include <bits/stdc++.h>

using namespace std;

namespace io {
	const int SIZE = (1 << 21) + 1;
	char ibuf[SIZE], *iS, *iT, obuf[SIZE], *oS = obuf, *oT = oS + SIZE - 1, c, qu[55]; int f, qr;
	// getchar
	#define gc() (iS == iT ? (iT = (iS = ibuf) + fread (ibuf, 1, SIZE, stdin), (iS == iT ? EOF : *iS ++)) : *iS ++)
	// print the remaining part
	inline void flush () {
		fwrite (obuf, 1, oS - obuf, stdout);
		oS = obuf;
	}
	// putchar
	inline void pc(char x) {
		*oS ++ = x;
		if (oS == oT) flush ();
	}
	// input a signed integer
	template <class I>
	inline void gi (I &x) {
		for (f = 1, c = gc(); c < '0' || c > '9'; c = gc()) if (c == '-') f = -1;
		for (x = 0; c <= '9' && c >= '0'; c = gc()) x = x * 10 + (c & 15); x *= f;
	}
	// print a signed integer
	template <class I>
	inline void print (I x) {
		if (!x) pc ('0'); if (x < 0) pc ('-'), x = -x;
		while (x) qu[++ qr] = x % 10 + '0',  x /= 10;
		while (qr) pc (qu[qr --]);
	}
	//no need to call flush at the end manually!
	struct Flusher_ {~Flusher_(){flush();}}io_flusher_;
}
using io :: gi;
using io :: pc;
using io :: print;

int main() {
  int n, a, b; gi(n);
  while(n--) gi(a), gi(b), print(a + b), pc('\n');
  return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #146.39 us44 KBAcceptedScore: 100


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