随笔分类 -  ACM - 构造

摘要:2022 China Collegiate Programming Contest (CCPC) Mianyang Onsite (2022CCPC绵阳)ACGHM https://codeforces.com/gym/104065 昨天女队vp了一下,赛时4题223罚时 A是一个dp,学妹已经写的 阅读全文
posted @ 2023-09-15 20:36 Sakana~ 阅读(332) 评论(0) 推荐(0) 编辑
摘要:# A - Non-Adjacent Flip https://atcoder.jp/contests/arc156/tasks/arc156_a ## 题意 给定一个01串,每次可以把不相邻的两个字符进行翻转,问最少要操作多少次使得全部变为0,无解输出-1。 ## 分析 记录 1 的数量为 $ 阅读全文
posted @ 2023-08-24 17:18 Sakana~ 阅读(23) 评论(0) 推荐(0) 编辑
摘要:# Codeforces Round 690 (Div. 3) https://codeforces.com/contest/1462 ## A. Favorite Sequence 按题意输出 ```CC #include using namespace std; const int N = 1e 阅读全文
posted @ 2023-08-06 17:30 Sakana~ 阅读(12) 评论(0) 推荐(0) 编辑
摘要:# Codeforces Round 889 (Div. 2) A-D https://codeforces.com/contest/1855 打的太烂了,决心好好复盘 ## A. Dalton the Teacher ```CC #include using namespace std; void 阅读全文
posted @ 2023-07-30 16:37 Sakana~ 阅读(219) 评论(0) 推荐(1) 编辑
摘要:# Codeforces Round 618 (Div. 2) https://codeforces.com/contest/1300 ## A. Non-zero 要求和,积都不为0,则先把全部0操作一次,然后再check 和是否为0,是的话再对任意数操作一次即可。 ```CC #include 阅读全文
posted @ 2023-07-27 13:36 Sakana~ 阅读(10) 评论(0) 推荐(0) 编辑
摘要:# Educational Codeforces Round 35 (Rated for Div. 2) https://codeforces.com/contest/911 ## A. Nearest Minimums ```CC #include using namespace std; con 阅读全文
posted @ 2023-07-25 15:39 Sakana~ 阅读(41) 评论(0) 推荐(0) 编辑
摘要:AtCoder Beginner Contest 126 https://atcoder.jp/contests/abc126 A - Changing a Character #include <bits/stdc++.h> using namespace std; int main () { i 阅读全文
posted @ 2023-01-26 10:27 Sakana~ 阅读(43) 评论(0) 推荐(0) 编辑
摘要:AtCoder Beginner Contest 131 https://atcoder.jp/contests/abc131 4/6:ABCD A - Security 水题 #include <bits/stdc++.h> using namespace std; signed main () 阅读全文
posted @ 2023-01-04 16:24 Sakana~ 阅读(27) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示