摘要: 背景 2024-10-2上午打的比赛(CSP-J模拟2),作赛后总结报告。 下棋(\(chess\)) 赛时AC。 概述 高星 \(x\) 中星 \(y\) 低星 \(z\) \(3\times z=y\) \(3\times y=x\) 阵容强度:\(18 \times x + 3 \times 阅读全文
posted @ 2024-10-02 18:31 Pinecone_0v0 阅读(13) 评论(0) 推荐(0)
摘要: 背景 2024-10-1上午打的比赛(CSP-J模拟),作赛后总结报告。 交替出场(Alter) 赛时AC。 思路 1.先将结果数设为长度(默认每个长度为1的子串符合要求) 2.遍历每个子串,判断是否满足01交替串,是+1 3.输出 我的代码 #include <iostream> #include 阅读全文
posted @ 2024-10-02 14:22 Pinecone_0v0 阅读(31) 评论(1) 推荐(0)