好题纪录(cf)

· · 个人记录

不是纯水的题 = 好题(这是本篇博客的定义),这里只有按照我刷的顺序的cf题,其他的题记录在这。 有些关于字符串的神仙题(一般评分>2800),由于自己不会做,没有纪录。

感觉有些题目的难度没有cf评分的那么高(氵),有“小”前缀的表示不是很难。

  1. CF678F Lena and Queries:维护凸包,离线插入删除点。

  2. CF679D Bear and Chase : 概率\rm DP乱搞(2900)。

  3. CF679E Bear and Bad Powers of 42 :线段树+势能(时间复杂度)分析(3100)。

  4. CF681D Gifts by the List:图论思维。

  5. CF681E Runaway to a Shadow :计算几何(2500)。

  6. CF682E Alyona and Triangles :计算几何乱搞(2600)。

  7. CF685C Optimal Point:二分+解不等式(2900)。

  8. CF685D Kay and Eternity :扫描线(2600)。

  9. CF685E Travelling Through the Snow Queen's Kingdom:离线,floyd(2800)。

  10. CF687D Dividing Kingdom II:greedy + 并查集 (黑)。

  11. CF689D Friends and Subsequences:统计所有区间a.max=b.min (2100)。

  12. CF689E Mike and Geometry Problem:k线段交覆盖计数(2000) (当年div2最后一题只有2000吗……)。

  13. CF690A2 Collective Mindsets (medium):海盗分金:至少多少金才保证p1不被杀(2300)。

  14. CF690C3 Brain Network (hard):‘动态’树直径 (2300)。

  15. CF691E Xor-sequences:矩乘优化\rm DP(紫)。

  16. CF696D Legen...:AC+矩乘(黑)。

  17. CF696E ...Wait for it...:树剖(3000)。

  18. CF696F ...Dary!:半平面交(3300)。

  19. CF698C LRU :状压+概率(2400)。

  20. CF698D Limak and Shooting Points :枚举+模拟 (2600)。

  21. CF700C Break Up :图论 割(2600)。

  22. CF700D Huffman Coding on Segment:莫队+哈夫曼(3100;紫)。

  23. CF702F T-Shirts :势能分析+平衡树(2800)。

  24. CF703E Mishka and Divisors:好\rm DP(2600)。

  25. CF704B Ant Man :贪心(黑)。

  26. CF704C Black Widow:\rm DP(2900)。

  27. CF704D Captain America:有上下界的网络流(3100)。

  28. CF704E Iron Man:树剖(3300)。

  29. CF706E Working routine:链表(2500)。

  30. CF707E Garlands:二位树状数组(2400)(数据水)。

  31. CF708D Incorrect Flow:有源汇上下界最小费用可行流(2900)。

  32. CF708E Student's Camp:\rm DP + 数学(3100)。我好像还不会

  33. CF710F String Set Queries:强制在线带修改AC自动机(黑)。

  34. CF712E Memory and Casinos:推式子+线段树(黑)。

  35. CF713D Animals and Puzzle:二维RMQ(黑)。

  36. CF713E Sonya Partymaker:环状\rm DP(3300)。

  37. CF715C Digit Tree:点分治(2700)。

  38. CF715D Create a Maze:构造(3100)(紫)。

  39. CF715E Complete the Permutations:组合计数(3400)。

  40. CF717A Festival Organization:组合计数(2900)。

  41. CF717F Heroes of Making Magic III:找规律+线段树(2600)。

  42. CF717G Underfail:费用流(2400)。

  43. CF717H Pokermon League challenge:纯随机(2400)。

  44. CF717I Cowboy Beblop at his computer:三维计几(氵2800)。

  45. CF718C Sasha and Array:线段树维护矩阵(2400)。

  46. CF718D Andrew and Chemistry:树hash(2900)。

  47. CF718E Matvey's Birthday:图+状压\rm DP(3300)。

  48. CF720B Cactusophobia:有色点仙人掌删环成树颜色最多(2400)。

  49. CF720D Slalom:扫描线(3100)。

  50. CF721E Road to Home:单调队列优化\rm DP(氵2700)。

  51. CF722E Research Rover:\rm DP+组合数(2900)(好方法避免容斥)。

  52. CF722F Cyclic Cipher:数论(氵2800)。

  53. CF723F st-Spanning Tree:生成树(2300)。

  54. CF724E Goods transportation:\rm DP搞最小割(氵2900)。

  55. CF724F Uniformly Branched Trees:树+\rm DP+组合计数(2700)。

  56. CF724G Xor-matic Number of the Graph:线性基,按位算贡献(2600)。

  57. CF725E Too Much Money:枚举+剪枝(2600)。

  58. CF725G Messages on a Tree:树剖(氵3300)。

  59. CF729F Financiers Game:\rm DP(2500)。

  60. CF730I Olympiad in Programming and Sports:模拟费用流(2000)。

  61. CF732F Tourist Reform:边双联通分量(2300)。

  62. CF733E Sleep in Class:思维(黑)。

  63. CF733F Drivers Dissatisfaction:生成树上LCA(氵黑)。

  64. CF734F Anton and School:构造+思维(2500)。

  65. CF735E Ostap and Tree:树形\rm DP(2500)。

  66. CF736D Permutations:bitset优化矩阵求逆(2800)。

  67. CF739C Alyona and towers:线段树(氵黑)。

  68. CF739D Recover a functional graph:二分图匹配(3400)。

  69. CF739E Gosha is hunting:费用流 或 wqs二分套wqs二分(3000)。

  70. CF741C Arpa’s overnight party and Mehrdad’s silent entering:建图+二分图染色(2600)。

  71. CF741D Arpa’s letter-marked tree and Mehrdad’s Dokhtar-kosh paths:只能用dsu on tree做的dsu on tree模板题(2900)。

  72. CF743E Vladik and cards:div2的压轴\rm DP

  73. CF744C Hongcow Buys a Deck of Cards:好状压DP(2400)。

  74. CF744D Hongcow Draws a Circle:随机优化多组二分+计几(3200)。

  75. CF746F Music in Car:滑动窗口(紫)。

  76. CF749E Inversions After Shuffle:期望(紫)。

  77. CF750E New Year and Old Subsequence:线段树优化矩阵优化DP(2600)(tourist没当场切掉)。

  78. CF750F New Year and Finding Roots:树+交互(2800)。

  79. CF750G New Year and Binary Tree Paths==TJOI2019……线段树 :数位DP(3200) 。

  80. CF750H New Year and Snowy Grid:并查集(3500)。

  81. CF754C Vladik and chat:\rm DP(2200)。

  82. CF754D Fedor and coupons:最大k区间交(紫)。

  83. CF754E Dasha and cyclic table:bitset优化(2600)。

  84. CF755E PolandBall and White-Red graph:构造+图(2400)。

  85. CF755F PolandBall and Gifts:二进制优化背包(2600)。

  86. CF755G PolandBall and Many Other Balls:倍增FFT(3200)。

  87. CF756C Nikita and stack:线段树上二分(紫)。

  88. CF756D Bacterial Melee:\rm DP(2400)。

  89. CF756E Byteland coins:难\rm DP(3200)(tourist当年没做出来)。

  90. CF757D Felicity's Big Secret Revealed:状压DP(紫)。

  91. CF757E Bash Plays with Functions:数论,筛(黑)。

  92. CF757F Team Rocket Rises Again:支配树模板(2800)。

  93. CF757G Can Bash Save the Day?:树剖+可持久化线段树 | 动态点分治 (3400)(tourist当年没做出来)。

  94. CF758E Broken Tree:贪心(2600)。

  95. CF758F Geometrical Progression:数论(2400)。

  96. CF761F Dasha and Photos:思维-查分(2600)。

  97. CF762D Maximum path:好\rm DP(紫)。

  98. CF762F Tree nesting:树上状压\rm DP(2800)(好!)。

  99. CF763C Timofey and remoduling:思维(2600)。

  100. CF763D Timofey and a flat tree:换根(氵2900)。

  101. CF763E Timofey and our friends animals:并查集+前缀和(氵2900)。

  102. CF765F Souvenirs:离线区间差值最小,\log^2 | \sqrt{ \ \ \ } (3100)(紫)。

  103. CF766E Mahmoud and a xor trip:树上全路径异或和(2100)。

  104. CF768G The Winds of Winter:dsu on tree (氵3300)。

  105. CF771E Bear and Rectangle Strips:好\rm DP(氵3000)。

  106. CF772C Vulnerable Kerbals:建图(氵黑)。

  107. CF772D Varying Kibibits:容斥 | \rm FWT (2700)。

  108. CF773D Perishable Roads:图论(2700)。

  109. CF773E Blog Post Rating:线段树(氵3000)。

  110. CF773F Test Data Generation:倍增\rm FFT(3400)。

  111. CF776G Sherlock and the Encrypted Data:数位\rm DP(2900)。

  112. CF778C Peterson Polyglot:\rm Trie+Dsu (2500)。

  113. CF778D Parquet Re-laying:普通构造(2700)。

  114. CF778E Selling Numbers:好\rm DP(3000)。

  115. CF780F Axel and Marston in Bitland:bitset + 矩阵乘法(氵黑)。

  116. CF780G Andryusha and Nervous Barriers:线段树套set维护扫描线(氵黑)。

  117. CF780H Intranet of Buses:二分+计几(3100)。

  118. CF785D Anton and School - 2:小组合计数(紫)。

  119. CF785E Anton and Permutation:动态逆序对(紫)。

  120. CF786A Berzerk:最朴素的博弈论(氵紫)。

  121. CF786B Legacy:线段树优化建图模板(紫)。

  122. CF786C Till I Collapse:主席树 | 根号分治(紫)。

  123. CF786D Rap God:卡常(3400)。

  124. CF786E ALT:树剖+线段树优化建边+网络流(3200)。

  125. CF788B Weird journey:欧拉图(紫)。

  126. CF788D Finding lines:普通交互(3000)(氵黑)。

  127. CF788E New task:线段树(2900)。

  128. CF792E Colored Balls:小数学+根号算法(2500)。

  129. CF792F Mages and Monsters:三维凸包(3100)。

  130. CF793E Problem of offices:思维(氵2900)。

  131. CF793F Julia the snail:吉司机线段树(氵3000)。

  132. CF793G Oleg and chess:扫描线+线段树优化建边+网络流(3400)。

  133. CF794D Labelling Cities:思维(紫)。

  134. CF794E Choosing Carrot:小思维(2900)。

  135. CF794F Leha and security system:线段树标记下放(2800)。

  136. CF796E Exam Cheating:小 \rm{DP} (氵黑)。

  137. CF796F Sequence Recovery:线段树+构造(2800)。

  138. CF797E Array Queries:根号分治(紫)。

  139. CF797F Mice and Holes:单调队列优化\rm DP(2600)。

  140. CF798D Mike and distribution:思维(2400)。

  141. CF798E Mike and code of a permutation:线段树优化拓扑排序(3000)。

  142. CF799E Aquarium decoration:小贪心(氵紫)。

  143. CF799F Beautiful fountains rows:异或的小性质(紫)(3500?)。

  144. CF799G Cut the pie:过任意点求给定多边形面积平分线(氵3500)。

  145. CF802C Heidi and Library (hard):费用流(黑)(2600)。

  146. CF802I Fake News (hard):后缀数组(2300)。

  147. CF802K Send the Fool Further! (medium):树形 \rm DP(2100)。

  148. CF802L Send the Fool Further! (hard):树上随机游走模板(紫)。

  149. CF802N April Fools' Problem (medium):wqs二分 | 费用流 (黑)。

  150. CF802O April Fools' Problem (hard): wqs二分 | 线段树优化费用流(2900)。

  151. CF803F Coprime Subsequences:小数学(紫)。

  152. CF803G Periodic RMQ Problem:动态开点线段树(氵黑)。

  153. CF804D Expected diameter of a tree:小期望+树的小性质(紫)。

  154. CF804E The same permutation:普通构造(3100)。

  155. CF804F Fake bullions:竞赛图缩点(3400)。

  156. CF808E Selling Souvenirs:w_i \leq 3 假背包(紫)。

  157. CF808F Card Game:网络流 | \rm {random\_shuffle}(紫)。

  158. CF808G Anthem of Berland:\rm kmp+DP(紫)。

  159. CF809C Find a car:找规律+数位\rm DP(2600)。

  160. CF809D Hitchhiking in the Baltic States:平衡树维护 \rm DP(2900)。

  161. CF809E Surprise me!:树上 \phi(a_i*a_j)* \text{dis}(i,j) 的期望(3100)。

  162. CF811E Vladik and Entertaining Flags:线段树(2600)。

  163. CF812E Sagheer and Apple Tree:博弈论(2300)。

  164. CF813E Army Creation:主席树(黑)。

  165. CF813F Bipartite Checking:线段树分治(黑)。

  166. CF814D An overnight dance in discotheque:小贪心(氵黑)(2000)。

  167. CF814E An unavoidable detour for home:\rm DP+计数(2600)。

  168. CF815D Karen and Cards:问题转化+扫描线(2800)。

  169. CF815E Karen and Neighborhood:二分(2900)。

  170. CF817F MEX Queries:线段树上二分(紫)。

  171. CF818G Four Melodies:费用流(2600)。

  172. CF819E Mister B and Flight to the Moon:归纳+构造(2800)。

  173. CF821E Okabe and El Psy Kongroo:矩乘优化\rm DP(紫)。

  174. CF822E Liar:\rm hash 优化\rm DP(紫)。

  175. CF825G Tree Queries:树(2500)。

  176. CF827D Best Edge Weight:树上小 \rm DS (2700)。

  177. CF827E Rusty String:字符匹配转 \rm FFT +思维(2700)。

  178. CF827F Dirty Arkady's Kitchen:图+\rm DP (3200)。

  179. CF830C Bamboo Partition:整除分块(紫)。

  180. CF830D Singer House:好 \rm DP(2800)。

  181. CF832C Strange Radiation:二分(氵黑)。

  182. CF833B The Bakery:线段树优化 \rm DP(紫)。

  183. CF833D Red-Black Cobweb :树上 \prod_i\prod_j (\prod _{ \in path(i,j)}w_l )^{[\frac 1 2 \leq \frac{\sum_{k\in path(i,j)} [col_k=1]}{\sum_{q\in path(i,j)} [col_q=0]} \leq2]} (2800)。

  184. CF835E The penguin's game:交互+异或(紫)。

  185. CF835F Roads in the Kingdom=NOI2013快餐店:基环树改树直径最小(紫)。

  186. CF838C Future Failure:计数 \rm DP (赛时无AC)(黑)。

  187. CF838D Airplane Arrangements:纯思维(2700)。

  188. CF838F Expected Earnings:期望\rm DP(2800)。

  189. CF839D Winter is here:容斥搞\gcd 或 序列莫反(紫)。

  190. CF839E Mother of Dragons:最大团结论题(2700)。

  191. CF840C On the Bench:计数\rm DP 或 卷+容斥(2500)。

  192. CF840D Destiny:主席树(略版) 或 随机(黑)。

  193. CF840E In a Trap:异或的阈值分块 (3200)。

  194. CF842D Vitya and Strange Lesson:全体 \rm Xor 再取 \rm mex (氵紫)。

  195. CF842E Nikita and game:'动态'树直径相关(氵黑)。

  196. CF843C Upgrading Tree:思维+树(2600)。

  197. CF843D Dynamic Shortest Path:动态最短路(氵3400)。

  198. CF843E Maximum Flow:最小割树(3000)。

  199. CF845E Fire in the City:二分答案(氵黑)。

  200. CF845F Guards In The Storehouse:插头 \rm DP (2500)。

  201. CF845G Shortest Path Problem?:最小 \rm XOR 路径 \approx P4151(紫)。

  202. CF847J Students Initiation:图论建模(2400)。

  203. CF848C Goodbye Souvenir:多解序列 \rm DS。(2600)。

  204. CF848D Shake It!:好 \rm DP (2900)。

  205. CF848E Days of Floral Colours:生成函数(3400)。

  206. CF850D Tournament Construction:兰道定理(2800)。

  207. CF850E Random Elections:\rm FWT (2800)。

  208. CF852A Digits:思维 | 随机化(2500)。

  209. CF852H Bob and stages:凸包(3000)。

  210. CF852I Dating:树上莫队(2300)。

  211. CF853D Michael and Charging Stations:小思维(2400)。

  212. CF1349F2 Slime and Sequences (Hard Version):小计数 (3500)。