好题纪录(cf)
不是纯水的题 = 好题(这是本篇博客的定义),这里只有按照我刷的顺序的cf题,其他的题记录在这。 有些关于字符串的神仙题(一般评分>2800),由于自己不会做,没有纪录。
感觉有些题目的难度没有cf评分的那么高(氵),有“小”前缀的表示不是很难。
-
CF678F Lena and Queries:维护凸包,离线插入删除点。
-
CF679D Bear and Chase : 概率
\rm DP 乱搞(2900)。 -
CF679E Bear and Bad Powers of 42 :线段树+势能(时间复杂度)分析(3100)。
-
CF681D Gifts by the List:图论思维。
-
CF681E Runaway to a Shadow :计算几何(2500)。
-
CF682E Alyona and Triangles :计算几何乱搞(2600)。
-
CF685C Optimal Point:二分+解不等式(2900)。
-
CF685D Kay and Eternity :扫描线(2600)。
-
CF685E Travelling Through the Snow Queen's Kingdom:离线,floyd(2800)。
-
CF687D Dividing Kingdom II:greedy + 并查集 (黑)。
-
CF689D Friends and Subsequences:统计所有区间a.max=b.min (2100)。
-
CF689E Mike and Geometry Problem:k线段交覆盖计数(2000) (当年div2最后一题只有2000吗……)。
-
CF690A2 Collective Mindsets (medium):海盗分金:至少多少金才保证p1不被杀(2300)。
-
CF690C3 Brain Network (hard):‘动态’树直径 (2300)。
-
CF691E Xor-sequences:矩乘优化
\rm DP (紫)。 -
CF696D Legen...:AC+矩乘(黑)。
-
CF696E ...Wait for it...:树剖(3000)。
-
CF696F ...Dary!:半平面交(3300)。
-
CF698C LRU :状压+概率(2400)。
-
CF698D Limak and Shooting Points :枚举+模拟 (2600)。
-
CF700C Break Up :图论 割(2600)。
-
CF700D Huffman Coding on Segment:莫队+哈夫曼(3100;紫)。
-
CF702F T-Shirts :势能分析+平衡树(2800)。
-
CF703E Mishka and Divisors:好
\rm DP (2600)。 -
CF704B Ant Man :贪心(黑)。
-
CF704C Black Widow:
\rm DP (2900)。 -
CF704D Captain America:有上下界的网络流(3100)。
-
CF704E Iron Man:树剖(3300)。
-
CF706E Working routine:链表(2500)。
-
CF707E Garlands:二位树状数组(2400)(数据水)。
-
CF708D Incorrect Flow:有源汇上下界最小费用可行流(2900)。
-
CF708E Student's Camp:
\rm DP + 数学(3100)。我好像还不会 -
CF710F String Set Queries:强制在线带修改AC自动机(黑)。
-
CF712E Memory and Casinos:推式子+线段树(黑)。
-
CF713D Animals and Puzzle:二维RMQ(黑)。
-
CF713E Sonya Partymaker:环状
\rm DP (3300)。 -
CF715C Digit Tree:点分治(2700)。
-
CF715D Create a Maze:构造(3100)(紫)。
-
CF715E Complete the Permutations:组合计数(3400)。
-
CF717A Festival Organization:组合计数(2900)。
-
CF717F Heroes of Making Magic III:找规律+线段树(2600)。
-
CF717G Underfail:费用流(2400)。
-
CF717H Pokermon League challenge:纯随机(2400)。
-
CF717I Cowboy Beblop at his computer:三维计几(氵2800)。
-
CF718C Sasha and Array:线段树维护矩阵(2400)。
-
CF718D Andrew and Chemistry:树hash(2900)。
-
CF718E Matvey's Birthday:图+状压
\rm DP (3300)。 -
CF720B Cactusophobia:有色点仙人掌删环成树颜色最多(2400)。
-
CF720D Slalom:扫描线(3100)。
-
CF721E Road to Home:单调队列优化
\rm DP (氵2700)。 -
CF722E Research Rover:
\rm DP +组合数(2900)(好方法避免容斥)。 -
CF722F Cyclic Cipher:数论(氵2800)。
-
CF723F st-Spanning Tree:生成树(2300)。
-
CF724E Goods transportation:
\rm DP 搞最小割(氵2900)。 -
CF724F Uniformly Branched Trees:树+
\rm DP +组合计数(2700)。 -
CF724G Xor-matic Number of the Graph:线性基,按位算贡献(2600)。
-
CF725E Too Much Money:枚举+剪枝(2600)。
-
CF725G Messages on a Tree:树剖(氵3300)。
-
CF729F Financiers Game:
\rm DP (2500)。 -
CF730I Olympiad in Programming and Sports:模拟费用流(2000)。
-
CF732F Tourist Reform:边双联通分量(2300)。
-
CF733E Sleep in Class:思维(黑)。
-
CF733F Drivers Dissatisfaction:生成树上LCA(氵黑)。
-
CF734F Anton and School:构造+思维(2500)。
-
CF735E Ostap and Tree:树形
\rm DP (2500)。 -
CF736D Permutations:bitset优化矩阵求逆(2800)。
-
CF739C Alyona and towers:线段树(氵黑)。
-
CF739D Recover a functional graph:二分图匹配(3400)。
-
CF739E Gosha is hunting:费用流 或 wqs二分套wqs二分(3000)。
-
CF741C Arpa’s overnight party and Mehrdad’s silent entering:建图+二分图染色(2600)。
-
CF741D Arpa’s letter-marked tree and Mehrdad’s Dokhtar-kosh paths:只能用dsu on tree做的dsu on tree模板题(2900)。
-
CF743E Vladik and cards:div2的压轴
\rm DP 。 -
CF744C Hongcow Buys a Deck of Cards:好状压DP(2400)。
-
CF744D Hongcow Draws a Circle:随机优化多组二分+计几(3200)。
-
CF746F Music in Car:滑动窗口(紫)。
-
CF749E Inversions After Shuffle:期望(紫)。
-
CF750E New Year and Old Subsequence:线段树优化矩阵优化DP(2600)(tourist没当场切掉)。
-
CF750F New Year and Finding Roots:树+交互(2800)。
-
CF750G New Year and Binary Tree Paths==TJOI2019……线段树 :数位DP(3200) 。
-
CF750H New Year and Snowy Grid:并查集(3500)。
-
CF754C Vladik and chat:
\rm DP (2200)。 -
CF754D Fedor and coupons:最大k区间交(紫)。
-
CF754E Dasha and cyclic table:bitset优化(2600)。
-
CF755E PolandBall and White-Red graph:构造+图(2400)。
-
CF755F PolandBall and Gifts:二进制优化背包(2600)。
-
CF755G PolandBall and Many Other Balls:倍增FFT(3200)。
-
CF756C Nikita and stack:线段树上二分(紫)。
-
CF756D Bacterial Melee:
\rm DP (2400)。 -
CF756E Byteland coins:难
\rm DP (3200)(tourist当年没做出来)。 -
CF757D Felicity's Big Secret Revealed:状压DP(紫)。
-
CF757E Bash Plays with Functions:数论,筛(黑)。
-
CF757F Team Rocket Rises Again:支配树模板(2800)。
-
CF757G Can Bash Save the Day?:树剖+可持久化线段树
| 动态点分治 (3400)(tourist当年没做出来)。 -
CF758E Broken Tree:贪心(2600)。
-
CF758F Geometrical Progression:数论(2400)。
-
CF761F Dasha and Photos:思维-查分(2600)。
-
CF762D Maximum path:好
\rm DP (紫)。 -
CF762F Tree nesting:树上状压
\rm DP (2800)(好!)。 -
CF763C Timofey and remoduling:思维(2600)。
-
CF763D Timofey and a flat tree:换根(氵2900)。
-
CF763E Timofey and our friends animals:并查集+前缀和(氵2900)。
-
CF765F Souvenirs:离线区间差值最小,
\log^2 |\sqrt{ \ \ \ } (3100)(紫)。 -
CF766E Mahmoud and a xor trip:树上全路径异或和(2100)。
-
CF768G The Winds of Winter:
dsu on tree(氵3300)。 -
CF771E Bear and Rectangle Strips:好
\rm DP (氵3000)。 -
CF772C Vulnerable Kerbals:建图(氵黑)。
-
CF772D Varying Kibibits:容斥 |
\rm FWT (2700)。 -
CF773D Perishable Roads:图论(2700)。
-
CF773E Blog Post Rating:线段树(氵3000)。
-
CF773F Test Data Generation:倍增
\rm FFT (3400)。 -
CF776G Sherlock and the Encrypted Data:数位
\rm DP (2900)。 -
CF778C Peterson Polyglot:
\rm Trie+Dsu (2500)。 -
CF778D Parquet Re-laying:普通构造(2700)。
-
CF778E Selling Numbers:好
\rm DP (3000)。 -
CF780F Axel and Marston in Bitland:
bitset+ 矩阵乘法(氵黑)。 -
CF780G Andryusha and Nervous Barriers:线段树套
set维护扫描线(氵黑)。 -
CF780H Intranet of Buses:二分+计几(3100)。
-
CF785D Anton and School - 2:小组合计数(紫)。
-
CF785E Anton and Permutation:动态逆序对(紫)。
-
CF786A Berzerk:最朴素的博弈论(氵紫)。
-
CF786B Legacy:线段树优化建图模板(紫)。
-
CF786C Till I Collapse:主席树 | 根号分治(紫)。
-
CF786D Rap God:卡常(3400)。
-
CF786E ALT:树剖+线段树优化建边+网络流(3200)。
-
CF788B Weird journey:欧拉图(紫)。
-
CF788D Finding lines:普通交互(3000)(氵黑)。
-
CF788E New task:线段树(2900)。
-
CF792E Colored Balls:小数学+根号算法(2500)。
-
CF792F Mages and Monsters:三维凸包(3100)。
-
CF793E Problem of offices:思维(氵2900)。
-
CF793F Julia the snail:吉司机线段树(氵3000)。
-
CF793G Oleg and chess:扫描线+线段树优化建边+网络流(3400)。
-
CF794D Labelling Cities:思维(紫)。
-
CF794E Choosing Carrot:小思维(2900)。
-
CF794F Leha and security system:线段树标记下放(2800)。
-
CF796E Exam Cheating:小
\rm{DP} (氵黑)。 -
CF796F Sequence Recovery:线段树+构造(2800)。
-
CF797E Array Queries:根号分治(紫)。
-
CF797F Mice and Holes:单调队列优化
\rm DP (2600)。 -
CF798D Mike and distribution:思维(2400)。
-
CF798E Mike and code of a permutation:线段树优化拓扑排序(3000)。
-
CF799E Aquarium decoration:小贪心(氵紫)。
-
CF799F Beautiful fountains rows:异或的小性质(紫)(3500?)。
-
CF799G Cut the pie:过任意点求给定多边形面积平分线(氵3500)。
-
CF802C Heidi and Library (hard):费用流(黑)(2600)。
-
CF802I Fake News (hard):后缀数组(2300)。
-
CF802K Send the Fool Further! (medium):树形
\rm DP (2100)。 -
CF802L Send the Fool Further! (hard):树上随机游走模板(紫)。
-
CF802N April Fools' Problem (medium):wqs二分 | 费用流 (黑)。
-
CF802O April Fools' Problem (hard): wqs二分 | 线段树优化费用流(2900)。
-
CF803F Coprime Subsequences:小数学(紫)。
-
CF803G Periodic RMQ Problem:动态开点线段树(氵黑)。
-
CF804D Expected diameter of a tree:小期望+树的小性质(紫)。
-
CF804E The same permutation:普通构造(3100)。
-
CF804F Fake bullions:竞赛图缩点(3400)。
-
CF808E Selling Souvenirs:
w_i \leq 3 假背包(紫)。 -
CF808F Card Game:网络流 |
\rm {random\_shuffle} (紫)。 -
CF808G Anthem of Berland:
\rm kmp+DP (紫)。 -
CF809C Find a car:找规律+数位
\rm DP (2600)。 -
CF809D Hitchhiking in the Baltic States:平衡树维护
\rm DP (2900)。 -
CF809E Surprise me!:树上
\phi(a_i*a_j)* \text{dis}(i,j) 的期望(3100)。 -
CF811E Vladik and Entertaining Flags:线段树(2600)。
-
CF812E Sagheer and Apple Tree:博弈论(2300)。
-
CF813E Army Creation:主席树(黑)。
-
CF813F Bipartite Checking:线段树分治(黑)。
-
CF814D An overnight dance in discotheque:小贪心(氵黑)(2000)。
-
CF814E An unavoidable detour for home:
\rm DP +计数(2600)。 -
CF815D Karen and Cards:问题转化+扫描线(2800)。
-
CF815E Karen and Neighborhood:二分(2900)。
-
CF817F MEX Queries:线段树上二分(紫)。
-
CF818G Four Melodies:费用流(2600)。
-
CF819E Mister B and Flight to the Moon:归纳+构造(2800)。
-
CF821E Okabe and El Psy Kongroo:矩乘优化
\rm DP (紫)。 -
CF822E Liar:
\rm hash 优化\rm DP (紫)。 -
CF825G Tree Queries:树(2500)。
-
CF827D Best Edge Weight:树上小
\rm DS (2700)。 -
CF827E Rusty String:字符匹配转
\rm FFT +思维(2700)。 -
CF827F Dirty Arkady's Kitchen:图+
\rm DP (3200)。 -
CF830C Bamboo Partition:整除分块(紫)。
-
CF830D Singer House:好
\rm DP (2800)。 -
CF832C Strange Radiation:二分(氵黑)。
-
CF833B The Bakery:线段树优化
\rm DP (紫)。 -
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)。 -
CF835E The penguin's game:交互+异或(紫)。
-
CF835F Roads in the Kingdom=NOI2013快餐店:基环树改树直径最小(紫)。
-
CF838C Future Failure:计数
\rm DP (赛时无AC)(黑)。 -
CF838D Airplane Arrangements:纯思维(2700)。
-
CF838F Expected Earnings:期望
\rm DP (2800)。 -
CF839D Winter is here:容斥搞
\gcd 或 序列莫反(紫)。 -
CF839E Mother of Dragons:最大团结论题(2700)。
-
CF840C On the Bench:计数
\rm DP 或 卷+容斥(2500)。 -
CF840D Destiny:主席树(略版) 或 随机(黑)。
-
CF840E In a Trap:异或的阈值分块 (3200)。
-
CF842D Vitya and Strange Lesson:全体
\rm Xor 再取\rm mex (氵紫)。 -
CF842E Nikita and game:'动态'树直径相关(氵黑)。
-
CF843C Upgrading Tree:思维+树(2600)。
-
CF843D Dynamic Shortest Path:动态最短路(氵3400)。
-
CF843E Maximum Flow:最小割树(3000)。
-
CF845E Fire in the City:二分答案(氵黑)。
-
CF845F Guards In The Storehouse:插头
\rm DP (2500)。 -
CF845G Shortest Path Problem?:最小
\rm XOR 路径\approx P4151(紫)。 -
CF847J Students Initiation:图论建模(2400)。
-
CF848C Goodbye Souvenir:多解序列
\rm DS 。(2600)。 -
CF848D Shake It!:好
\rm DP (2900)。 -
CF848E Days of Floral Colours:生成函数(3400)。
-
CF850D Tournament Construction:兰道定理(2800)。
-
CF850E Random Elections:
\rm FWT (2800)。 -
CF852A Digits:思维 | 随机化(2500)。
-
CF852H Bob and stages:凸包(3000)。
-
CF852I Dating:树上莫队(2300)。
-
CF853D Michael and Charging Stations:小思维(2400)。
-
CF1349F2 Slime and Sequences (Hard Version):小计数 (3500)。