摘要:
posted on 2022-02-04 18:11:33 | under 模板 | source int popcount(int x){ #define BIT2(n) n,n+1,n+1,n+2 #define BIT4(n) BIT2(n),BIT2(n+1),BIT2(n+1),BIT2( 阅读全文
posted @ 2022-11-06 19:11
caijianhong
阅读(112)
评论(0)
推荐(0)
摘要:
posted on 2022-08-10 18:07:25 | under 模板 | source 0x00 Bellman-Ford 最短路经过的边数不超过 $n-1$,因此若松弛轮数达到 $n$ 轮即有负环。复杂度 $O(nm)$。 int dis[100010]; bool vis[10001 阅读全文
posted @ 2022-11-06 19:11
caijianhong
阅读(52)
评论(0)
推荐(0)
摘要:
posted on 2022-06-11 11:17:10 | under 模板 | source template<int N,int M=26,int D='a'> struct acam{ int ch[N+10][M],cnt[N+10],tot,fail[N+10]; int sum[N+ 阅读全文
posted @ 2022-11-06 19:11
caijianhong
阅读(27)
评论(0)
推荐(0)
摘要:
posted on 2022-01-17 16:13:39 | under 模板 | source #include <cstdio> #include <cstring> #include <algorithm> using namespace std; template<int N,int M= 阅读全文
posted @ 2022-11-06 19:11
caijianhong
阅读(34)
评论(0)
推荐(0)
摘要:
你好,博客园!——2022.11.6 阅读全文
posted @ 2022-11-06 18:28
caijianhong
阅读(463)
评论(0)
推荐(1)
浙公网安备 33010602011771号