跳到正文

Light_LE

816204

OI 征途逐梦行,代码飞扬绘梦情。2025 马失蹄,重拿 6 级夺失名。

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

资料、奖项与版本

资料

编号
816204
抓取

版本

  1. v2当前
  2. v1
十年 OI 一场空,不开 long long 见祖宗\textcolor{deepskyblue}{\huge 十年 \ OI \ 一场空,不开 \ long \ long \ 见祖宗} 我将永远铭记 2025 年的耻辱!\textcolor{red}{我将永远铭记 \ 2025 \ 年的耻辱!}

永远记住:CSP-S 第二轮第一题永远不是自己用来写原始对偶费用流逞能的地方(不然我就在 2025 年 6 级)。

语录集

“在太阳西斜的这个世界里,置身天上之森。等这场战争结束之后,不归之人与望眼欲穿的众人,人人本着正义之名,长存不灭的过去、逐渐消逝的未来。我回来了,纵使日薄西山,即便看不到未来,此时此刻的光辉,盼君勿忘。”——珂朵莉(世界上最幸福的女孩)《末日时在做什么?有没有空?可以来拯救吗?》

“我们之间相隔的距离好像刚好是 1000 光年。所以我看到的是 1000 年前的地球。这意味着,太阳的光经过 8 分钟后照在了你的身上,然后又带着你的模样,在宇宙中孤独旅行了 1000 年最后被我的眼睛捕捉到。我现在很有可能能看到当下的你哦。因此,我们可能很早就认识,当我们都在仰望星空的时候,我可能正在注视着你的眼睛。”——Aliya《彼方的她》

C++14 编译命令

--std=c++14 -g -static -O2 -Wall -Wextra -Wshadow

缺省源

竞赛使用 (without FastIO)
C++
#include <bits/stdc++.h>
using namespace std;
using ll = long long; using ull = unsigned long long;
const int MAXN = 1e6 + 10;
const int INF32 = INT_MAX; const ll INF64 = LLONG_MAX;

int main() {
	// freopen(".in", "r", stdin);
	// freopen(".out", "w", stdout);
	ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);

	
	return 0;
}
Codeforces
C++
#include <bits/stdc++.h>
using namespace std;
using ll = long long; using ull = unsigned long long;
const int MAXN = 1e6 + 10;
const int INF32 = INT_MAX; const ll INF64 = LLONG_MAX;

void solve() {
	
}
int main() {
	// freopen(".in", "r", stdin);
	// freopen(".out", "w", stdout);
	ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	
	int T;
	cin >> T;
	while (T--) solve();
	return 0;
}
竞赛使用 (with FastIO)
C++
#include <bits/stdc++.h>
namespace FastIO {
	template<typename T> bool rd(T &x) {
		x = 0;
		T f = 1;
		char c = getchar();
		if (c == EOF) return 0;
		while (!isdigit(c)) {
			if (c == '-') f = -1;
			c = getchar();
		}
		while (isdigit(c)) {
			x = x * 10 + c - '0';
			c = getchar();
		}
		x *= f;
		return 1;
	}
	template<typename T> void wt(T x) {
		if (x < 0) {
			putchar('-');
			x = -x;
		}
		if (x > 9) wt(x / 10);
		putchar(x % 10 + '0');
	}
}
using namespace FastIO;
using namespace std;
using ll = long long; using ull = unsigned long long;
const int MAXN = 1e6 + 10;
const int INF32 = INT_MAX; const ll INF64 = LLONG_MAX;

int main() {
	// freopen(".in", "r", stdin);
	// freopen(".out", "w", stdout);
	// ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);

	
	return 0;
}
卡常专用 FastIO
C++
namespace FastIO {
	const int BUF_SIZE = 1 << 20;
	char ibuf[BUF_SIZE], *iptr = ibuf, *iend = ibuf;
	char obuf[BUF_SIZE], *optr = obuf;
	inline int getc() { if (iptr == iend) { iend = ibuf + fread(ibuf, 1, BUF_SIZE, stdin); iptr = ibuf; if (iptr == iend) return EOF; } return *iptr++; }
	inline void putc(char c) { if (optr == obuf + BUF_SIZE) { fwrite(obuf, 1, BUF_SIZE, stdout); optr = obuf; } *optr++ = c; }
	inline void flush() { if (optr != obuf) { fwrite(obuf, 1, optr - obuf, stdout); optr = obuf; } }
	template<typename T> bool rd(T &x) { x = 0; T f = 1; int c = getc(); if (c == EOF) return false; while (!isdigit(c)) { if (c == '-') f = -1; c = getc(); if (c == EOF) return false; } while (isdigit(c)) { x = x * 10 + (c - '0'); c = getc(); if (c == EOF) break; } x *= f; return true; }
	template<typename T> void wt(T x) { if (x < 0) { putc('-'); using UT = typename std::make_unsigned<T>::type; UT ux = static_cast<UT>(x); ux = -ux; char buf[20]; int n = 0; do { buf[n++] = '0' + (ux % 10); ux /= 10; } while (ux > 0); while (n--) putc(buf[n]); return; } if (x > 9) wt(x / 10); putc('0' + (x % 10)); }
	struct Flusher { ~Flusher() { flush(); } } flusher;
}
using namespace FastIO;

链接

李煜东《算法竞赛进阶指南》配套资源

更多信息你被骗了,哈哈\qquad \color{white}你被骗了,哈哈