跳到正文

sto_5k_orz

675466

AFO on 2023.10.21 || 就让一切的不甘和痛苦都到此为止吧 || 千万不要轻易进入思考人生的状态,不然你会浪费 k 分钟并且感到心里难受。

这是 2026年10月19日 存档的第 1 版,不是当前版本。查看当前版本

资料、奖项与版本

资料

编号
675466
抓取

版本

  1. v2当前
  2. v1

C++
#include<bits/stdc++.h>
using namespace std;
#define I inline
namespace SlowIO {
	const int SZ = (1 << 20) + 1;
	char buf[SZ], *p1 = buf, *p2 = buf;
	char buffer[SZ];
	int op1 = -1;
	const int op2 = SZ - 1;
	I char gc() {
		if(p1 != p2) return *p1++;
		return p1 == (p2 = (p1 = buf) + fread(buf, 1, SZ - 1, stdin)) ? EOF : *p1++;
	}
	I void flush() {
		fwrite(buffer, 1, op1 + 1, stdout);
		op1 = -1;
	}
	I void pc(const char &x) {
		if(op1 == op2) flush();
		buffer[++op1] = x;
	}
	I int read() {
		int x = 0, f = 1; char ch = gc();
		while(ch < '0' || ch > '9') {if(ch == '-') f = -f; ch = gc();}
		while(ch >= '0' && ch <= '9') x = x * 10 + (ch ^ 48), ch = gc();
		return x * f;
	}
	I void write(int x) {
		if(x < 0) pc('-'), x = -x;
		char s[25];
		int tot = 0;
		while(x || !tot) {
			s[tot++] = x % 10 + 48;
			x /= 10;
		}
		while(tot--) pc(s[tot]);
	}
} using namespace SlowIO;
int main() {
	
	flush();
	return 0;
}