Codeforces 🟡 CF2183D1. Tree Coloring (Easy Version)
對樹進行染色,每次選擇無邊且深度不同的節點集。
Codeforces 🟡 CF2183C. War Strategy
枚舉一側可以延伸的長度 x,並貪心計算另一側可以延伸的長度 y。
Codeforces 🟡 CF2183B. Yet Another MEX Problem
刪除對答案沒有貢獻的冗餘元素,用鴿籠原理證明其一定存在。
Codeforces 🟡 CF2053C. Bewitching Stargazer
利用遞迴結構與中心對稱性,計算選取星星的總數。
最新文章
標籤
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)
網站資訊
文章數量 :
427
總字數 :
623.4k
最後更新時間 :






