02 2023 档案

摘要:constexpr int N = 100005; // ch[i][0] 代表左儿子,ch[i][1] 代表右儿子 int rt, tot, fa[N], ch[N][2], val[N], cnt[N], sz[N]; struct Splay { void maintain(int x) { 阅读全文
posted @ 2023-02-15 23:15 hacker_dvd 阅读(13) 评论(0) 推荐(0) 编辑
摘要:using ll = __int128; template <typename T> inline void rd(T &data) { T x = 0, flag = 1; char ch = getchar(); while (ch < '0' || ch > '9') { if (ch=='- 阅读全文
posted @ 2023-02-15 11:24 hacker_dvd 阅读(15) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示