Codeforces 🟢 CF2053E. Resourceful Caterpillar Sequence
博弈分析 + 換根 DP 計數。利用「撤銷」性質推得勝負至多 2 輪內決定,分類討論後用換根 DP 統計。
Codeforces 🟢 CF2053D. Refined Product Optimality
利用排序不等式,最大乘積為排序後對應陣列的最小值之積。修改操作時,利用二分搜尋找到排序陣列中該數值的最後一個位置進行更新,既能維持有序性,又能用 O(1) 更新乘積。
最新文章
標籤
AlgoPythonCodeforcesAtCoderAtCoder Beginner ContestABC模擬(Simulation)狀態壓縮計數(Counter)前綴和(Prefix Sum)貢獻法縮點有序容器(Sorted Container)C++模運算(Modular Arithmetic)雜湊表(Hash Table)回溯(Backtracking)DFSBFS樹狀陣列(Binary Indexed Tree)逆序對(Inverse Pair)樹(Tree)計數(Counting)分組循環迭代(Iteration)遞迴(Recursion)字串(String)併查集(Disjoint Set Union)博弈論(Game Theory)動態規劃(Dynamic Programming)
網站資訊
文章數量 :
417
總字數 :
610.8k
最後更新時間 :






![Luogu 🟣 P3195 [HNOI2008] 玩具装箱](https://i.gdst.dev/cover/P3195.webp)
