摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; typedef long long LL; int n, q, cmd, i, j, k; int main() { cin >> n >> q; vector<vector<int> > loc 阅读全文
posted @ 2021-11-24 14:31
糖豆爸爸
阅读(55)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; int n, m, tmp; vector<int> stu; int main() { cin >> n >> m; for (int i = 1; i <= n; i++) { cin >> 阅读全文
posted @ 2021-11-24 14:30
糖豆爸爸
阅读(132)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; typedef long long LL; const int M = 1e6 + 10; int m, n, k;//m表示学校数,n表示学生 int a[M]; long long res; 阅读全文
posted @ 2021-11-24 14:21
糖豆爸爸
阅读(73)
评论(0)
推荐(0)
摘要:
题目传送门 一、朴素解法 #include <bits/stdc++.h> using namespace std; const int N = 10010; typedef long long LL; struct Person { int first, second; } p[N]; int n 阅读全文
posted @ 2021-11-24 14:17
糖豆爸爸
阅读(181)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; typedef long long LL; const int N = 5010; int n, s; //苹果数 n,力气 s int a, b; //椅子的高度a,陶陶手伸直的最大长度b。 s 阅读全文
posted @ 2021-11-24 14:13
糖豆爸爸
阅读(87)
评论(0)
推荐(0)
摘要:
题目传送门 #include <bits/stdc++.h> using namespace std; const int N = 25; typedef long long LL; LL f[N][N][N]; LL w(LL a, LL b, LL c) { //注意判断的顺序,防止数组下标越界 阅读全文
posted @ 2021-11-24 09:14
糖豆爸爸
阅读(59)
评论(0)
推荐(0)
摘要:
题目传送门 一、深度优先搜索 #include <bits/stdc++.h> using namespace std; int n; //毫不意外,只通过了5个测试点,TLE了15个点~ int dfs(int x) { //1就没法继续分了,同时,由于题目说:原数列不做任何修改就直接统计为一种合 阅读全文
posted @ 2021-11-24 09:13
糖豆爸爸
阅读(290)
评论(0)
推荐(0)
摘要:
题目传送门 一、递推+高精度 #include <bits/stdc++.h> using namespace std; const int N = 5010; /** * 功能:高精度加法模板 * @param A * @param B * @return */ vector<int> add(v 阅读全文
posted @ 2021-11-24 08:41
糖豆爸爸
阅读(159)
评论(0)
推荐(0)

浙公网安备 33010602011771号