上一页 1 2 3 4 5 6 ··· 23 下一页
摘要: 比赛链接:https://atcoder.jp/contests/abc212/tasks A - Alloy 代码 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin 阅读全文
posted @ 2021-08-01 01:16 Kanoon 阅读(115) 评论(3) 推荐(0) 编辑
摘要: 比赛链接:https://codeforces.com/contest/1546 A. AquaMoon and Two Arrays 题意 给出两个大小为 \(n\) 的数组 \(a, b\) ,每次可以选择 \(a\) 中的两个元素分别加一减一,计算将 \(a\) 变为 \(b\) 的操作次数和 阅读全文
posted @ 2021-07-13 21:36 Kanoon 阅读(119) 评论(0) 推荐(2) 编辑
摘要: 比赛链接:https://atcoder.jp/contests/abc205 A - kcal #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullp 阅读全文
posted @ 2021-06-17 22:00 Kanoon 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 比赛链接:https://codeforces.com/contest/1538 A. Stone Game 题解 从一侧取:两种情况 从两侧取:一种情况 取三种情况的最小值。 代码 #include <bits/stdc++.h> using namespace std; int main() { 阅读全文
posted @ 2021-06-12 22:00 Kanoon 阅读(177) 评论(4) 推荐(0) 编辑
摘要: 比赛链接:https://codeforces.com/contest/1535 A. Fair Playoff 题解 可以考虑不成立的情况。 代码 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_s 阅读全文
posted @ 2021-06-06 19:31 Kanoon 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 比赛链接:https://codeforces.com/contest/1529 A. Eshag Loves Big Arrays 题解 反复选取最小值和大于它的数即可。 代码 #include <bits/stdc++.h> using namespace std; int main() { i 阅读全文
posted @ 2021-06-02 19:16 Kanoon 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 比赛链接:https://atcoder.jp/contests/abc203/tasks A - Chinchirorin 题意 给出三个数,如果有两个数相同,输出剩下的那个数。 题解 模拟。 代码 #include <bits/stdc++.h> using namespace std; int 阅读全文
posted @ 2021-06-01 18:01 Kanoon 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 比赛链接:https://atcoder.jp/contests/abc202/tasks A - Three Dice #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); c 阅读全文
posted @ 2021-05-25 17:20 Kanoon 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 比赛链接:https://pintia.cn/problem-sets/1392022091148099584/problems/type/7 7-1 自动编程 (5 分) #include <bits/stdc++.h> using namespace std; int main() { ios: 阅读全文
posted @ 2021-05-21 00:00 Kanoon 阅读(374) 评论(3) 推荐(1) 编辑
摘要: 比赛链接:https://codeforces.com/contest/1525 A. Potion-making 题意 开始时有一口空的大锅,每次操作可以向锅中加入 \(1\) 升魔法精华或 \(1\) 升水,问使魔法精华的比例为 \(k\ \%\) 最少需要操作多少次。 题解 \(k\ \% = 阅读全文
posted @ 2021-05-19 18:30 Kanoon 阅读(63) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 23 下一页