摘要:
//spfa 判断正环 #include<iostream> #include<queue> #include<cstring> using namespace std; const int N=1e4; const int INF=2e9; int h[N],to[N],ne[N],idx; do 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; const int N=5010; int n,m,k; int a[N],b[N],c[N];//攻破所需人数,获得人数,奖励得分 int l[N],d[N],f[N],h[N];//可以扔掉兵攻占i的最晚的 阅读全文
摘要:
#include <cstring> #include <iostream> #include <algorithm> using namespace std; const int N = 110; int n, m; int v[N], w[N]; int h[N], e[N], ne[N], i 阅读全文
摘要:
#include<iostream> #include<algorithm> #include<cstring> using namespace std ; const int N=1010; int f[N],g[N],q[N]; int n,m; int a[N]; int main() { c 阅读全文
摘要:
#include <cstring> #include <iostream> #include <algorithm> using namespace std; const int N = 25010; int n; int a[N]; bool f[N]; int main() { int T; 阅读全文