摘要:
#include <bits/stdc++.h> using namespace std; const int N = 210, INF = 1e9; int n, m, Q; int d[N][N]; void floyd() { for (int k = 1; k <= n; k++) { fo 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 100010; int n; int q[N], tmp[N]; LL merge(int l, int r){ if (l >= r) 阅读全文
摘要:
就是三重暴力解,每一组里面挑选一个 #include<bits/stdc++.h> using namespace std; const int N = 110; int n, m; int v[N][N], w[N][N], s[N]; int f[N]; int main() { cin >> 阅读全文
摘要:
类似于二分法? 每一部分求到最小值然后合并 #include<bits/stdc++.h> using namespace std; const int N = 310; int n; int s[N]; int f[N][N]; int main() { cin >> n; for (int i 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; const int N = 1010; int n, m; int v[N], w[N]; int f[N]; int main() { cin >> n >> m; for (int i = 1; i <= 阅读全文