摘要: 思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; int main() { int t; double n; cin >> t >> n; while (t--) { double a; cin >> a; if (a < 阅读全文
posted @ 2021-04-27 10:09 Whiteying 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 思路: 数字处理 Tip: 注意年月输出用%02d #include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; int month = a % 100; int year = a / 100; if (yea 阅读全文
posted @ 2021-04-27 10:08 Whiteying 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 思路: a+b problem Tip: 无 #include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << a - b * c << endl; return 0 阅读全文
posted @ 2021-04-27 10:07 Whiteying 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 思路: Hello,World! Tip: 无 #include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cout << "To iterate is human, to recurse divine." << e 阅读全文
posted @ 2021-04-27 09:56 Whiteying 阅读(321) 评论(0) 推荐(0) 编辑
摘要: L1-1 人与神 (5分) L1-2 两小时学完C语言 (5分) L1-3 强迫症 (10分) L1-4 降价提醒机器人 (10分) L1-5 大笨钟的心情(15分) L1-6 吉老师的回归 (15分) L1-7 天梯赛的善良(20分) L1-8 乘法口诀数列 (20分) L2-1 包装机(25分) 阅读全文
posted @ 2021-04-27 09:55 Whiteying 阅读(1014) 评论(0) 推荐(0) 编辑
摘要: 思路: 题目标签是记忆化搜索,但是这种题我用的拓扑排序 首先建好图,将多余的边删掉,再从A点开始拓扑到B点,如果可以推到其他无出边的点,则不是逻辑自洽。路上记录边数即可求出A到B的条数。 Tip: 拓扑排序注意拓扑到B点就立刻停止,如果WA了测试点4极有可能是这种情况。 #include <bits 阅读全文
posted @ 2020-11-29 15:46 Whiteying 阅读(529) 评论(1) 推荐(0) 编辑
摘要: 思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 200 + 5; const int INF = 0x7FFFFFFF; int mp[maxn 阅读全文
posted @ 2020-11-29 15:45 Whiteying 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 思路: 水题,略过 Tip: 满二叉树和完全二叉树的性质 #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 1000 + 5; struct point { int num; po 阅读全文
posted @ 2020-11-29 15:43 Whiteying 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 思路: 首先建一个全局vector存有相关症状的人,再建一个局部vector存每一天的申请信息,排序后进行筛选。 Tip: 操作顺序: 检查身份证合法性 对于有相关症状的人员进行记录 排序 按照规则发放口罩 任何一步顺序都不能调换和丢失,否则本题无法通过。 #include <bits/stdc++ 阅读全文
posted @ 2020-11-29 15:41 Whiteying 阅读(507) 评论(0) 推荐(0) 编辑
摘要: 思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; typedef long long ll; stack<int> s1; stack<char> s2; int main() { int n; cin >> n; for 阅读全文
posted @ 2020-11-29 15:40 Whiteying 阅读(233) 评论(0) 推荐(0) 编辑