摘要: 配合 多项式操作 食用 只要把最高次幂为 \(vector.size()\) 的多项式直接传入即可。 #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; 阅读全文
posted @ 2023-09-21 21:57 __int256 阅读(19) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; #define rg register inline int read(){ rg char ch=getchar(); rg int x=0,f=0; while(!isdigit(ch)) f|=(ch== 阅读全文
posted @ 2022-07-23 16:20 __int256 阅读(29) 评论(0) 推荐(0) 编辑
摘要: fhq Treap #include <bits/stdc++.h> using namespace std; #define rg register #define I inline #define gc getchar #define rep(i, a, b) for(int i = a; i 阅读全文
posted @ 2022-07-23 16:17 __int256 阅读(27) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for(int i = a; i <= b; ++i) #define per(i, a, b) for(int i = a; i >= b; --i) #defin 阅读全文
posted @ 2022-02-12 15:21 __int256 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 情报传递 两个人碰到等于没碰到(灵魂互换),只需要统计两个方向能在规定之间内走完的人数即可。 #include <bits/stdc++.h> using namespace std; const int N = 1e5 + 5; int a[2][N]; int tail[2]; int main 阅读全文
posted @ 2021-12-12 08:21 __int256 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 对任意实数 \(x\) \(x - 1 < \lfloor x \rfloor \le x \le \lceil x \rceil < x + 1\) 对任意整数 \(n\) $$ \lceil n / 2 \rceil + \lfloor n / 2 \rfloor = n$$ 对任意实数 \(x 阅读全文
posted @ 2021-07-10 11:39 __int256 阅读(195) 评论(0) 推荐(0) 编辑
摘要: #- 前置芝士 计算机补码,加减运算,\(lowbit(x)=x\&-x\) #- 核心 ##- 每个节点所管辖的范围是最低位的lowbit ##- 每次加减lowbit调整范围 ##- 例子 (防止差行,阅读请忽略) 这么一列就明白了 1 01 2 10 3 11 4 100 下面节点除了最高位不 阅读全文
posted @ 2021-07-09 20:09 __int256 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 为了保证效率,部分代码拆开CV了一下。 #include<bits/stdc++.h> using namespace std; #define rg register #define I inline #define gc getchar #define rep(i, a, b) for(int 阅读全文
posted @ 2021-07-06 10:54 __int256 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 白い夜が街を染めたら 雪色的夜晚染白了整个街巷 阅读全文
posted @ 2020-06-13 07:23 __int256 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 昨日よりも きっと強く 相比于昨天 我是否变得更坚强了呢 阅读全文
posted @ 2020-06-12 21:57 __int256 阅读(157) 评论(0) 推荐(0) 编辑