提交记录 18612


用户 题目 状态 得分 用时 内存 语言 代码长度
JuRuoOIer 1000. 测测你的 A+B Time Limit Exceeded 0 10 us 28 KB C++ 2.36 KB
提交时间 评测时间
2022-11-06 10:09:16 2022-11-06 10:09:18
#include<cstdio>
#include<algorithm>
/* --------------- fast io --------------- */ // begin
namespace Fread {
	const int SIZE = 1 << 21;
	char buf[SIZE], *S, *T;
	inline char getchar() {
		if (S == T) {
			T = (S = buf) + fread(buf, 1, SIZE, stdin);
			if (S == T) return '\n';
		}
		return *S++;
	}
} // namespace Fread
namespace Fwrite {
	const int SIZE = 1 << 21;
	char buf[SIZE], *S = buf, *T = buf + SIZE;
	inline void flush() {
		fwrite(buf, 1, S - buf, stdout);
		S = buf;
	}
	inline void putchar(char c) {
		*S++ = c;
		if (S == T) flush();
	}
	struct NTR {
		~ NTR() {
			flush();
		}
	} ztr;
} // namespace Fwrite
#ifdef ONLINE_JUDGE
#define getchar Fread :: getchar
#define putchar Fwrite :: putchar
#endif
namespace Fastio {
	struct Reader {
		template<typename T>
		Reader& operator >> (T& x) {
			char c = getchar();
			T f = 1;
			while (c < '0' || c > '9') {
				if (c == '-') f = -1;
				c = getchar();
			}
			x = 0;
			while (c >= '0' && c <= '9') {
				x = x * 10 + (c - '0');
				c = getchar();
			}
			x *= f;
			return *this;
		}
		Reader& operator >> (char& c) {
			c = getchar();
			while (c == ' ' || c == '\n') c = getchar();
			return *this;
		}
		Reader& operator >> (char* str) {
			int len = 0;
			char c = getchar();
			while (c == ' ' || c == '\n') c = getchar();
			while (c != ' ' && c != '\n' && c != '\r') { // \r\n in windows
				str[len++] = c;
				c = getchar();
			}
			str[len] = '\0';
			return *this;
		}
		Reader() {}
	} cin;
	const char endl = '\n';
	struct Writer {
		template<typename T>
		Writer& operator << (T x) {
			if (x == 0) {
				putchar('0');
				return *this;
			}
			if (x < 0) {
				putchar('-');
				x = -x;
			}
			static int sta[45];
			int top = 0;
			while (x) {
				sta[++top] = x % 10;
				x /= 10;
			}
			while (top) {
				putchar(sta[top] + '0');
				--top;
			}
			return *this;
		}
		Writer& operator << (char c) {
			putchar(c);
			return *this;
		}
		Writer& operator << (char* str) {
			int cur = 0;
			while (str[cur]) putchar(str[cur++]);
			return *this;
		}
		Writer& operator << (const char* str) {
			int cur = 0;
			while (str[cur]) putchar(str[cur++]);
			return *this;
		}
		Writer() {}
	} cout;
} // namespace Fastio
#define cin Fastio :: cin
#define cout Fastio :: cout
#define endl Fastio :: endl
/* --------------- fast io --------------- */ // end
#define ll long long
using namespace std;
int plus(int a, int b)
{
	return a + b;
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #110 us28 KBTime Limit ExceededScore: 0


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