摘要:
哈希 typedef unsigned long long ULL; const int N = 1000010, P = 131; int n, m; string s; ULL p[N], h[N]; void init(){ p[0] = 1, h[0] = 0; string pys = " 阅读全文
posted @ 2024-03-21 19:56
Miburo
阅读(6)
评论(0)
推荐(0)
摘要:
拓扑排序 #include <bits/stdc++.h> using namespace std; constexpr int N = 100010; int n, m, a, b; vector<int> e[N], tp; int din[N]; bool toposort(){ queue< 阅读全文
posted @ 2024-03-21 19:50
Miburo
阅读(20)
评论(0)
推荐(0)

浙公网安备 33010602011771号