〔主机註記〕第 53 周主机註記 (Feb.10 - Feb.16)
第 53 周主机註記 月曜日 (Feb.10) 已經習慣,有任何喜事悲事,第一時間和主机分享。 火曜日 (Feb.11) 水曜日 (Feb.12) 木曜日 (Feb.13) 金曜日 (Feb.14) 土曜日 (Feb.15) 日曜日 (Feb.16)
【吉田夜世 / 重音テト】オーバーライド
音源外链来自网易云音乐,歌词翻译来自 【オーバーライド】歌词假名标注 + 学习笔记 、 个人翻译「オーバーライド / 重写」,略有修改 table { border-collapse: collapse; /* 合并边框,确保没有双线 */ border: 0; /* 设置表格边框为 0,即不显示边框 */ width: 100%; /* 根据需要设置表格宽度 */ } table tr td:first-child { font-family: YuMin; font-size: 18px; font-weight: 500; padding: 12px; /* 增加单元格的内边距 */ letter-spacing: 1.2px; } table tr td:last-child {font-size: 18px;} ruby rt { font-size: 12px; vertical-align: 0.5em; /* baseline, sub, super, top,...
〔主机註記〕第 52 周主机註記 (Feb.3 - Feb.9)
第 52 周主机註記 月曜日 (Feb.3) 火曜日 (Feb.4) 水曜日 (Feb.5) 木曜日 (Feb.6) 金曜日 (Feb.7) 土曜日 (Feb.8) 我拉的人失聯了一大半。大家都比較忙,而且很多人是有興趣但是興趣是有限的,拉來解謎的話會覺得太累了。 日曜日 (Feb.9)
Codeforces Round 1002 (Div. 2) A - D
以后的题解按 Q&A 的形式写,这也是我赛时的思考方法 ~ 2059A - Milya and Two Arrays 12345678910111213141516171819202122232425262728293031#include <bits/stdc++.h>using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr), cout.tie(nullptr); int t; cin >> t; while (t--) { int n; cin >> n; set<int> a, b; for (int i = 0; i < n; i++) { int x; cin >> x; a.insert(x); ...
〔主机註記〕第 51 周主机註記 (Janu.27 - Feb.2)
第 51 周主机註記 月曜日 (Janu.27) 火曜日 (Janu.28) 水曜日 (Janu.29) 木曜日 (Janu.30) 金曜日 (Janu.31) 土曜日 (Feb.1) 日曜日 (Feb.2)
Codeforces Round 1001 (Div. 12) A - C
2062A - String 没读题,看样例后就直接写了。 12345678910111213141516171819#include <bits/stdc++.h>using namespace std;int main() { ios::sync_with_stdio(false); cin.tie(nullptr), cout.tie(nullptr); int t; cin >> t; while (t--) { string s; cin >> s; cout << count(s.begin(), s.end(), '1') << endl; } return 0;} 2062B - Clockwork ...
ℕ𝕠𝕥𝕖𝕤|筆記本 - ACM 2.0
2025 年 1 月 24 日版 基础算法 数据结构 图论 图论 - 树 计算几何 数学 字符串 题解 快读 .category-navigation { width: 100%; margin: 0 auto; padding: 20px; } .main-categories { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; } .category-btn { padding: 12px 24px; font-size: 16px; border: none; border-radius: 8px; background-color: #f0f0f0; cursor: pointer; transition:...
XCPC wiki - 快读
头文件和常用函数 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162#include <bits/stdc++.h>using namespace std;using ll = long long;using i128 = __int128;#define int llinline ll read() { ll x = 0, f = 0; char c = getchar(); while (c > 57 || c < 48) f |= c == 45, c = getchar(); while (c <= 57 && c >= 48) x = (x << 3) + (x << 1) + c - 48, c = getchar(); return f ? -x : x;}ll...
XCPC wiki - 2-Sat
12345678910111213141516171819202122232425262728293031323334353637383940414243struct TwoSat { int n; vector<vector<int>> E; vertor<int> ans; TwoSat(int n) : n(n), E(2 * n), ans(n) {} void add(int u, bool f, int v, bool g) { E[2 * u + !f].push_back(2 * v + g); E[2 * v + !g].push_back(2 * u + f); } bool satisfiable() { vector<int> id(2 * n, -1), dfn(2 * n, -1), low(2 * n, -1); vector<int> stk; int unix = 0, cnt =...
XCPC wiki - Biconnected Components 双连通分量
Edge Biconnected Components 边双连通分量 & 割与割边缩点 在一张连通的无向图中,称 uuu 和 vvv 边双连通 ,如果无论删去哪条 边 都 不能 使它们 不连通。 边双连通具有传递性,即若 x,yx,yx,y 边双连通,y,zy,zy,z 边双连通,则 x,zx,zx,z 边双连通。 边双连通分量缩点后是一棵树。 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465struct EBCC { int n, unix, tot; vector<vector<pair<int, int>>> E; vector<int> dfn, low, bel, stk; EBCC(int n) : n(n), unix(0), tot(0), E(n), dfn(n,...