02 2025 档案

摘要:A. FizzBuzz Remixed 原题链接:https://mirror.codeforces.com/contest/2070/problem/A 思路: 打表发现为 \(FizzBuzz\) 的数字有 \(0\)、\(1\)、\(2\)、\(15\)、\(16\)、\(17\) ... { 阅读全文
posted @ 2025-02-28 17:17 宋佳奇 阅读(54) 评论(0) 推荐(0)
摘要:D. For Wizards, the Exam Is Easy, but I Couldn't Handle It 原题链接:https://mirror.codeforces.com/contest/2072/problem/D 思路: 每次对 \(l~r\) 的序列进行操作后,\(a[l]\) 阅读全文
posted @ 2025-02-26 20:03 宋佳奇 阅读(46) 评论(0) 推荐(0)
摘要:这场跨度好大 D. QED's Favorite Permutation 原题链接:https://mirror.codeforces.com/contest/2030/problem/D 思路: \(L\) 只能与当前的前一个进行交换,\(R\) 只能与当前的后一个进行交换,容易发现当前一个字符与 阅读全文
posted @ 2025-02-25 14:11 宋佳奇 阅读(15) 评论(0) 推荐(0)
摘要:A. Penchick and Modern Monument 题目链接:https://mirror.codeforces.com/contest/2031/problem/A 思路: 分析发现答案就是:\(总个数 - 最长上升子序列的个数\) 时间复杂度: \(O(n)\) 代码: #inclu 阅读全文
posted @ 2025-02-24 20:24 宋佳奇 阅读(24) 评论(0) 推荐(0)
摘要:D-小苯的排列技术 原题链接:https://ac.nowcoder.com/acm/contest/102303/D 思路: 先判断序列是否有可行方案,即判断序列为非递增序列且最后一位一定为1。 在数字 \(P\) 在序列中出现的第一个位置即为其应该放置的位置,并且在下一个数字在序列中出现的位置与 阅读全文
posted @ 2025-02-24 19:39 宋佳奇 阅读(32) 评论(0) 推荐(0)
摘要:A. Coin Transformation Initially, you have a coin with value \(n\). You can perform the following operation any number of times (possibly zero): trans 阅读全文
posted @ 2025-02-05 00:08 宋佳奇 阅读(24) 评论(0) 推荐(0)