摘要:
#include <bits/stdc++.h> using namespace std; int main() { int n, k, m; cin >> n >> k >> m; vector<double> all; for (int i = 0; i < n; i++) { vector<i 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> v(n + 1); for (int i = 1; i <= n; i++) { cin >> v[i]; } vector 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; constexpr int N = 510; vector<int> g[N]; int main() { int n, m; cin >> n >> m; for (int i = 0; i < m; i+ 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; int main() { int n, q; cin >> n >> q; vector<int> v; make_heap(v.begin(), v.end(), greater<int>()); for 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; const int N = 10110; struct Tree { int u, l, r; }TNode[N]; int midorder[N], preorder[N]; int main() { in 阅读全文