CF dp 題(1500-2000難度)

前言

從後往前刷html

update 新增 \(\text{\color{red}{Mark}}\) 標記功能,有必定難度的題標記爲 \(\text{\color{red}{紅}}\) 色。git

題單 (刷過的題就會登記在上面)

  • 2B The least round way 只有 \(2^a*5^b\) 尾隨'\(0\)'的個數爲 \(\text{min}(a,b)\),dp一遍就行了ide

  • 4D Mysterious Present優化

  • 5C Longest Regular Bracket Sequencespa

  • [CF] 8C Looking for Orderorm

  • [CF] 9D How many trees?htm

  • 14E Camelsblog

  • B. Checkout Assistantget

  • 22B Bargaining Table博客

  • 30C Shooting Gallery

  • 35D Animals

  • 38E Let's Go Rolling!

  • 44H Phone Number

  • 41D Pawn 小結dp不了,再加一維 \(f[i][j][k]\) 表示 i,j位置路徑和等於k 的可能 可能爲1 不能爲0

  • 49D Game

  • $ \text{\color{red}{54C First Digit Law}}$ (數位dp+機率dp+揹包)

  • 67A Partial Teacher

  • 67D Optical Experiment (LIS經典)

  • 71C Round Table Knights

  • 73C LionAge II

  • 76D Plus and xor (位運算) 小結 : 其實只要想清楚就簡單了。xor運算在 兩位都是 1 時結果爲 0 ,而 +運算的結果爲 10 ,每次兩位都是 1 時,+運算結果A老是比xor運算結果多兩倍(或者說多出的就是A-B,而\(\frac{A-B}{2}\) 就是兩位都是 哪一些爲兩位都是 1)。這些 1 是必定是公共的,故 \(\frac{A-B}{2}\) 必定是整數,且 A-B>=0。

  • 78C Beaver Game (博弈論)

  • 79C Beaver (尺取)

  • 82D Two out of Three

  • 95B Lucky Numbers (貪心,搜索)

  • 101B Buses

  • 106C Buns 裸的揹包。順便補充一句:多重揹包的優化;分組揹包;樹上分組揹包;樹上多重揹包?;這些記得複習一下

  • \(\text{\color{red}{107B Basketball Team}}\) 機率dp是個人短板,不過這題是排列組合?

  • \(\text{\color{red}{109C Lucky Tree}}\) 沒有看懂的一道樹形dp

  • 118D Caesar's Legions

  • 119C Education Reform 2 碼力大題

  • 120F Spiders

  • F**K,已經作到50~60題了,博客園卡了一下,*

樹形dp (2000~2100)【1/20】

相關文章
相關標籤/搜索