提交记录 5549


用户 题目 状态 得分 用时 内存 语言 代码长度
denverjin 1000i. 【传统题】 A+B Problem Wrong Answer 0 47.3 us 52 KB C++ 1.71 KB
提交时间 评测时间
2018-08-29 22:44:19 2020-08-01 00:19:22
#include <set>
#include <map>
#include <queue>
#include <deque>
#include <cmath>
#include <stack>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cstdlib>
#include <cstring>
#include <sstream>
#include <fstream>
#include <iostream>
#include <algorithm>
#define LLD "%lld"
#define ll long long
#define vi vector <int>
#define pii pair <int, int>
#define forall(x,c) for (auto x : c)
#define rep(i,n) for (int i = 0; i < int(n); ++ i)
using namespace std;

namespace IO {
	const int BUF_SIZE = 1 << 15;
	char IBUF[BUF_SIZE], OBUF[BUF_SIZE];
	char *PIBUF = IBUF + BUF_SIZE - 1, *POBUF = OBUF;
	
	inline int getchar() {
		if (++ PIBUF == IBUF + BUF_SIZE)
			fread(PIBUF = IBUF, 1, BUF_SIZE, stdin);
		return *PIBUF;
	}
	
	inline void putchar(int x) {
		*POBUF = x;
		if (++ POBUF == OBUF + BUF_SIZE)
			fwrite(POBUF = OBUF, 1, BUF_SIZE, stdout);
	}
	
	inline void flush() {
		if (POBUF != OBUF)
			fwrite(OBUF, 1, POBUF - OBUF, stdout);
	}
}

#define getchar()  IO :: getchar()
#define putchar(x) IO :: putchar(x)

inline
int getint() {
	int a = 0, c = getchar();
	for (;!isdigit(c); c = getchar());
	for (; isdigit(c); c = getchar()) a = (a<<3) + (a<<1) + (c^48);
	return a;
}

template <typename T>
inline void putint(T x) {
	if (x < 0) putchar('-');
	if (x >= 10) putint(x / 10);
	putchar(x - x / 10 * 10 + 48);
}

const int Maxn = 1 << 10;
int n, a[Maxn], b[Maxn];

void Read() {
	n = getint();
	rep(i, n) {
		a[i] = getint();
		b[i] = getint();
	}
}

void Init() {
}

void Solve() {
	rep(i, n) putint(a[i] + b[i]), putchar('\n');
}

int main() {
#ifdef DEBUG
	freopen("/home/denverjin/input",  "r", stdin);
	freopen("/home/denverjin/output", "w", stdout);
#endif
	Read();
	Init();
	Solve();
	IO :: flush();
	return 0;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #147.3 us52 KBWrong AnswerScore: 0


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