摘要:
P2756 飞行员配对方案问题 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 10005, inf = 0x3f3f3f; 4 struct Edge { 5 int from, to, cap, flow; 阅读全文
摘要:
P3834 【模板】可持久化线段树 1(主席树) 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 2e5+5; 4 int n, q, m, cnt = 0; 5 int a[maxn], b[maxn], T 阅读全文
摘要:
P4015 运输问题 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 205, inf = 0x3f3f3f3f; 4 struct Edge { 5 int from, to, cap, flow, cost 阅读全文
摘要:
Problem 2232 炉石传说 不知道fzu的账号在哪里弄,想要做题的可以到vj上面去做 https://vjudge.net/problem/FZU-2232 #include <iostream> #include <cstdio> #include <vector> #include <q 阅读全文
摘要:
P3389 【模板】高斯消元法 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 105; 4 typedef double Matrix[maxn][maxn]; 5 void gauss_eliminatio 阅读全文
摘要:
P2613 【模板】有理数取余 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 const int p = 19260817; 5 inline ll read() { 6 ll res = 0; 阅读全文
摘要:
hdu2063 过山车 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 2005, inf = 0x3f3f3f; 4 struct Edge { 5 int from, to, cap, flow; 6 }; 阅读全文
摘要:
P3386 【模板】二分图匹配 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 2005, inf = 0x3f3f3f; 4 struct Edge { 5 int from, to, cap, flow; 阅读全文
摘要:
P3381 【模板】最小费用最大流 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 10005, inf = 0x3f3f3f3f; 4 struct Edge { 5 int from, to, cap, f 阅读全文
摘要:
P3376 【模板】网络最大流 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 10005, inf = 0x3f3f3f; 4 struct Edge { 5 int from, to, cap, flow; 阅读全文