随笔分类 -  算法竞赛

摘要:words... 呜呜呜,怎么大家都会 觉得题解还行就点个赞吧 题面 对于一个排列\(P\),定义\(f(P)\)如下: def f(P:permutation) -> int: ans = 0 st: Stack[int] = Stack() for i in P: while st is not 阅读全文
posted @ 2025-07-31 19:33 aminuosi 阅读(86) 评论(0) 推荐(0)
摘要:2025牛客暑期多校训练营5 J.Fastest Coverage Problem 时限:\(2s\) 内存:\(512MB\) 题目描述 给定一个 \(n×m\) 的二元矩阵,其中 \(1\) 代表黑色单元格,\(0\) 代表白色单元格。每一秒,每个黑色单元格会将其上、下、左、右四个相邻的白色单元 阅读全文
posted @ 2025-07-29 17:59 aminuosi 阅读(227) 评论(0) 推荐(1)
摘要:发现AI题解写得比我清晰易懂多得多,呜呜呜 好的,我结合你的代码和提供的思路,帮你详细梳理这道题的思维过程,讲得尽量规范和清晰,适合新手理解。可以一步步跟着思考,掌握关键点。 题目简述 你有 n 个能量核心,每个核心有坐标 \((x_i, y_i)\) 和能量强度 \(a_i\)。 对任意一对核心 阅读全文
posted @ 2025-07-25 17:47 aminuosi 阅读(122) 评论(0) 推荐(0)
摘要:Educational Codeforces Round 181 (Rated for Div. 2) ABCD 目录 Educational Codeforces Round 181 (Rated for Div. 2) ABCD 目录 A B C D E(TODO) ABCD 偏简单了 A 众所 阅读全文
posted @ 2025-07-23 19:33 aminuosi 阅读(25) 评论(0) 推荐(0)
摘要:ABC 379 题解 目录 ABC 379 题解 目录 A Cyclic B Strawberries C Sowing Stones D Home Garden E Sum of All Substrings A Cyclic man what can i say? #include <bits/ 阅读全文
posted @ 2024-11-21 17:25 aminuosi 阅读(127) 评论(0) 推荐(0)
摘要:CF Edu171 ABC 这场ABC全都犯病了(悲伤) D E 还没有补,到时候补上。 目录 Educational Codeforces Round 171 (Rated for Div. 2) 题解(A-C) 目录 A. Perpendicular Segments B. Black Cell 阅读全文
posted @ 2024-10-29 16:24 aminuosi 阅读(260) 评论(0) 推荐(0)