摘要: A. Escalator Conversations Problem [题目](Rudolph and Cut the Rope) Sol & Code 绳子长度大于钉子高度的要剪 #include <bits/stdc++.h> typedef long long ll; int min(int 阅读全文
posted @ 2023-10-05 19:40 yu__xuan 阅读(13) 评论(0) 推荐(0) 编辑
摘要: A. Escalator Conversations Problem 题目 Sol & Code 签到 #include <bits/stdc++.h> typedef long long ll; int min(int a, int b) { return a < b ? a : b; } int 阅读全文
posted @ 2023-10-05 19:30 yu__xuan 阅读(6) 评论(0) 推荐(0) 编辑
摘要: A. Array Coloring Problem 题目 Sol & Code 只有数列的和为偶数时才符合要求,即有任意个偶数,偶数个奇数。 将这些数分成两部分,发现两部分初始值 \(0\) 为偶数,偶数不会影响奇偶性,故需要偶数个奇数。 #include <bits/stdc++.h> #defi 阅读全文
posted @ 2023-10-05 19:08 yu__xuan 阅读(8) 评论(0) 推荐(0) 编辑