上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 171 下一页
摘要: 题目传送门 #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)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; double k; double x; int main() { cin >> k; for (int cnt = 1;; cnt++) { x += 2.0 * pow(0.98, cnt - 阅读全文
posted @ 2021-11-23 16:44 糖豆爸爸 阅读(58) 评论(0) 推荐(0)
摘要: 题目传送门 #include <bits/stdc++.h> using namespace std; typedef long long LL; const LL MOD = 1e9 + 7;//要模的质数 const int N = 1e5 + 10; int a[N]; //木棍长度数组,木棍 阅读全文
posted @ 2021-11-23 16:37 糖豆爸爸 阅读(96) 评论(0) 推荐(0)
上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 171 下一页
Live2D