摘要:
先满足挑剔的 cpp include include include include using namespace std; typedef long long ll; int n, m, tmp, rot, cnt; ll ans; struct Cow{ int pri, gre; }cow[ 阅读全文
摘要:
treap水过 cpp include include include using namespace std; int n, uu, rot, cnt, sum=0, ans1, ans2; const int oo=2147483647; struct Treap{ int val[35005] 阅读全文
摘要:
参考文章 "无源汇有上下界的可行流" "有源汇有上下界的最大流" "有源汇有上下界的最小流" 无源汇有上下界可行流 以 loj115 为例。 剥离出必要边与自由边。 cpp include include include include using namespace std; int n, m, 阅读全文
摘要:
莫比乌斯反演练习题。 cpp include include include using namespace std; typedef long long ll; int T, b, d, a, c, k, mu[100005], pri[100005], cnt; bool isp[100005] 阅读全文