上一页 1 2 3 4 5 6 ··· 29 下一页
摘要: 关于nvim下Tutor的总结 用于自查,有两三个命令未记,配合Tutor实操更好 命令 释义 dw 删除一个单词,光标跳转到下一个单词的第一个字母,中间有空格也会删除 d$ 从光标开始,删除到行尾 de 删除一个单词,不会删除该单词后的空格 0 回到行首 2w 跳转2个单词,光标移动到第2个单词的 阅读全文
posted @ 2022-03-11 19:37 lemonsbiscuit 阅读(273) 评论(0) 推荐(1) 编辑
摘要: #include <iostream> #include <algorithm> #include <cstring> #include <vector> using namespace std; const int N = 10010; struct node { int s,e,l; }ans[ 阅读全文
posted @ 2022-03-10 15:46 lemonsbiscuit 阅读(29) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <vector> #include <algorithm> using namespace std; typedef pair<int, int> PII; #define x first #define y second const int 阅读全文
posted @ 2022-02-28 17:19 lemonsbiscuit 阅读(34) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <algorithm> using namespace std; const int N = 1010; int f[N][N]; int v[N],w[N]; int main() { int n,m; 阅读全文
posted @ 2022-02-27 17:28 lemonsbiscuit 阅读(31) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <algorithm> #include <string> using namespace std; #define gdb(x) cout<<x<<endl; const int mod = 1e9 + 7; const int N = 1 阅读全文
posted @ 2022-02-26 17:24 lemonsbiscuit 阅读(30) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 110; int n,m; int w[N],v[N],root; int h[N],e[N],ne[N],i 阅读全文
posted @ 2022-02-22 14:29 lemonsbiscuit 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 给定 \(n\) 个同余模方程 \[ \left\{\begin{aligned} x\equiv\, & m_1(mod\quad a_1)\\ x\equiv\, & m_2(mod\quad a_2)\\ &\vdots\\ x\equiv\, & m_n(mod\quad a_n) \end 阅读全文
posted @ 2021-04-22 11:44 lemonsbiscuit 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 定义 若 \(p\) 为质数,且$a\ge b\ge1$,则有: \(C_{a}^{b}\equiv C_{a/p}^{b/p}\cdot C_{a (mod\,p)}^{b(mod\,p)}\) 拆分a与b 按照 \(p\) 进制拆分 \(a\) 与 \(b\) ,设 \(a\) 与 \(b\) 阅读全文
posted @ 2021-04-18 18:29 lemonsbiscuit 阅读(696) 评论(2) 推荐(4) 编辑
摘要: 费马小定理 若 \(a\) 不是 \(p\) 的整数倍,则有$a^\equiv1,(mod, p)\tag{1}$ 乘法逆元 \(b\) 与 \(m\) 互质,则 \(\frac{a}{b}=a*x\,(mod\,m)\) ,其中 \(x\) 称作 \(b\) 模 \(m\) 的逆,记作$,b^{- 阅读全文
posted @ 2021-04-17 10:50 lemonsbiscuit 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 带权并查集,用权值维护是不是属于同一类 #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 50010; int fa[N],d[N];//d[i]维护i到自己祖 阅读全文
posted @ 2021-04-02 11:18 lemonsbiscuit 阅读(52) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 29 下一页