My Codeforce Practice
1.笛卡尔树1
2.笛卡尔树2
3.线性基
4.线性基
5.三分
6.树点分治
7.中国余数 1
7.中国余数 2
8.中国余数 3
9.中国余数 Code
10.欧拉函数
https://github.com/JunBinLiang/Leetcode-Complete-Guide
1133E.K Balanced Teams (1800) (DP)
1110D Jongmah (2200) (DP + Greedy)
176B. Word Cut (1700) (DP + Observation)
1472F. New Year's Puzzle (2100) (DP)
1513C. Add One (1600) (DP)
1517D. Explorer Space (1800) (DP)
977F. Consecutive Subsequence (1700) (DP)
313D. Ilya and Roads (2100) (DP)
66E. Petya and Post(2000) (DP + Thinking)
1525D. Armchairs (1800) (DP)
31E. TV Game (2400) (DP)
1529D. Kavi on Pairing Duty (1700) (Thinking + DP)
1527C. Sequence Pair Weight (1600) (DP)
279E.Beautiful Decomposition(1900) (Bit + DP)
46E. Comb (1900) ( DP)
988F. Rain and Umbrellas (2100) ( DP)
1536C. Diluc and Kaeya (1500) ( DP + HashMap)
1066F. Yet another 2D Walking (2100) (DP + Math)
1487F.Ones (2900) (DP + Observation)
571B. Minimization (2000) (DP + k skip)
466D. Increase Sequence (2100) (DP)
1155D. Beautiful Array (1900) (DP + Kadane)
626F. Group Projects (2400) (DP + Thinking)
1188C. Array Beauty (2500) (DP + Brute Force + Time Complexity)
895C. Square Subsets (2000) (DP + Combination + BitMask) C(n,0) + C(n,2) + ... == C(n,1) + C(n,3) = C(n,5) + ... == 2^(n-1)
1025D. Recovering BST (2000) (TreeDP)
360B. Levko and Array (2000) (DP)
597C.Subsequences (1900) (DP + Fenwick)
597B.Restaurant (1600) (DP + Binary Search)
1551E.Fixed Points (2000) (DP + Binary Search)
486E.LIS of Sequence (2200) (DP + Implementation)
459E.Pashmak and Graph (1900) (DP)
797E. Array Queries (2000) (DP + Brute Force)
463D. Gargari and Permutations(1900) (DP )
999F.Cards and Joy (2000) (DP)
1244D.Paint the Tree (1800) (DP + Tree)
1146F.Leaf Partition (2500) (Hard DP)
1154F. Shovels Shop (2100) (DP)
229D. Towers (2100) (DP + Two Pointer)
1176F. Destroy it! (2100) ( DP)
629C.Famil Door and Brackets (2000) (DP + Bracket)
777E.Hanoi Factory (2000) (DP + Seg + sort)
264C. Choosing Balls (2000) (DP)
1579G. Minimal Coverage (2200) (DP + Thinking)
1593F.Red-Black Number (2100) (DP)
474E.Pillars (2000) (Segment Tree + DP + TreeSet)
598E.Chocolate Bar (2000) (DP)
1003F.Abbreviation (2200) (DP)
1140E.Palindrome-less Arrays (2200) (DP + Combination + Observation)
1582E.Pchelyonok and Segments(2000) ( DP )
762D.Maximum path (2300) ( DP + State Representation )
476E.Dreamoon and Strings (2200) (Thinking + DP)
864E.Fire (2000) (DP)
1120C.Compress String (2100) (DP)
570E.Pig and Palindromes (2300) (DP)
1225E.Rock Is Push (2200) (DP + Thinking)
1327F.AND Segments (2500) (DP + Thinking)
1367F1.Flying Sort (Easy Version) (2100) (DP + Thinking)
1367F2.Flying Sort (Hard Version) (2400) (DP + Thinking)
900E.Maximum Questions (2100) (DP + Thinking ) (Thumb)
1198D.Rectangle Painting 1 (2300) (DP)
383D.Antimatter (2300) (DP)
1363F. Rotating Substrings (2600) (Hard DP)
1575L.Longest Array Deconstruction(2100) (DP + LIS)
946G.Almost Increasing Array (2500) (DP + LIS)
675E.Trains and Statistic (2300) (DP + Greedy + Segment Tree)
687C.The Values You Can Make (1900) (背包DP)
1132E.Knapsack (2300) (DP + 背包 + 拆背包)
478D.Red-Green Towers (2000) (DP)
479E. Riding in a Lift (1900) (DP + Prefix Sum)
1183H. Subsequences (hard version) (2000) ( DP + Distinct Subsequence )
314C. Sereja and Subsequences (2100) (DP + Distince Subsequence + Fenwick Tree)
842C.Ilya And The Tree (2000) (DP Set)
1216F.Wi-Fi (2100) (Line DP + Segment Tree)
1185D.Extra Element (1700) (Prefix DP )
1278C. Berry Jam (1700) (DP + Left Right)
21C. Stripe 2 (2000) (Dp)
1474D. Cleaning (2200) (Thinking + Left/Right DP)
224D. Two Strings (1900) (left-right DP +Binary Search)
279C. Ladder (1700) (Segment Tree +Left-right DP)
1015E2.Stars Drawing (Hard Edition) (1900) (DP)
1066E. Binary Numbers AND Sum (1700) (Prefix)
466C. SNumber of Ways (1700) (DP + rihgt/prefix)
900C.Remove Extra One (1700) (Thinking + Left/Right DP)
519D.A and B and Interesting Substrings (1800) (Prefix Sum)
201C.Fragile Bridges(2000) (Left-Right DP + Thinking + Sort)
75D. Big Maximum Sum (2000) (Left Right DP)
362C. Insertion Sort (1900) ( DP + Prefix)
1303E. Erase Subsequences(2200) (DP + Thinking)
1580B.Mathematics Curriculum (2600) (Permutation DP + Combination)
161D. Distance in Tree (1800) (Tree DP )
1029E.Tree with Small Distances (2100) (Tree DP)
1092F. Tree with Maximum Cost (Tree DP)
1025D. Recovering BST (2000) (TreeDP)
633F. The Chocolate Spree(2600) (Tree DP)
274B.Zero Tree (1800) (Tree DP )
543D.Road Improvement (2300) ( Tree DP + Left/Right DP )
766E.Mahmoud and a xor trip (2100) (Tree DP)
1646D.Weight the Tree (2000) (Tree + DP)
55D.Beautiful numbers (2500) (Digit DP)
914C.Travelling Salesman and Special Numbers (1800) (Digit DP)
1073E.Segment Sum (2300) (Digit DP)
1185G1. Playlist for Polycarp (easy version) (2100) (Bitmask DP )
279D.The Minimum Number of Variables(2200) (Bit DP)
453B.Little Pony and Harmony Chest (2000) (Bitmask DP)
1215E. Marbles (2200) (Bitmask DP)
1316E.Team Building (2300) (Bitmask DP + Thinking)
1238E.Keyboard Purchase (2200) (Bitmask DP)
1554B.Cobb (1700) (Submask + DP)
165E.Compatible Numbers (2200) (Submask + DP + Bitmask)
1509C. The Sports Festival (1800) (DP)
983B.XOR-pyramid (1800) (Interval DP)
1132F.Clear the String (2000) (区间 DP)
1399F. Yet Another Segments Subset (2300) (区间DP)
1336C.Kaavi and Magic Spell(2200) (区间DP + Thinking)
1107E.Vasya and Binary String (2400) (区间DP + remove box)
1077F2.Pictures with Kittens (hard version) (2100) (DP + Monoqueue)
487B. Strip (2000) (DP + Monoqueue)
1304F2.Animal Observation (Hard version) (2400) (DP + Monoqueue + Thinking)
540D. Bad Luck Island (1900) (DP)
1575H.Holiday Wall Ornaments(2200) (DP + KMP)
494B.Obsessive String (2000) ( DP + KMP + Prefix )
1163D.Mysterious Code (2100) (kmp + dp)
1151E.Number of Components(2100) (Observation + Thinking + Contribution)
903D. Almost Difference (2200) (Contribution)
960E.Alternating Tree (2300) (Tree DP + Combination)
1542D.Priority Queue - 2 (2200) (DP + Contribution)
1155D. Beautiful Array (1900) (DP + Kadane)
621E. Wet Shark and Blocks (2000) (Matrix Exponent + DP)
450B. Jzzhu and Sequences (1300) (Matrix)
222E. Decoding Genome (1900) (DP + Matrix)
1151F.Sonya and Informatics (2300) (Matrix + DP + Probability) (Thunp)
514E.Darth Vader and Tree (2200) (Matrix + DP)
540B. School Marks (1700) (Greedy )
1144G. Two Merged Sequences (2400) (Greedy) (Thumb)
1203F1. Complete the Projects (easy version) (2100) (Greedy + Sort) (Thump)
1508A. Binary Literature (1900) (Greedy) (Thumb)
313E. Ilya and Two Numbers (2300) (Greedy + Thinking + Sort)
45E. Director (2000) (Greedy + Implementation)
1294E. Obtain a Permutation (1900) (Implementation)
450E. Jzzhu and Apples (2500) (Greedy)
73B. Need For Brake (2000) (Greedy + Sort)
484D. Kindergarten (2400) (DP + Greedy + Observation)
509C.Sums of Digits (2000) (Constructive + Greedy)
1551B2.Wonderful Coloring - 2 (1400) (Greedy + Binary Search)
600C.Trains and Statistic (1800) (Greedy + Constructive)
965D.Single-use Stones (1900) (Thinking + Two Pointer + Greedy)
893D.Credit Card (1900) (Greedy)
1415E. New Game Plus! (2200) (Thinking Greedy)
999D. Equalize the Remainders (1900) (Greedy + TreeSet )
729E.Subordinates (1900) (Greedy)
1176D. Recover it! (1800) ( Greedy + Sort)
349B.Color the Fence (1700) (Greedy)
446B.DZY Loves Modification (2000) (Greedy)
353B.Two Heaps (1900) (Greedy + Thinking)
721D. Maxim and Array (2000) (Greedy + Math)
985C.Liebig's Barrels (1500) (Greedy)
627C.Package Delivery (2200) (Greedy) (Thumb)
976E.Well played! (2100) (Greedy)
1607G.Banquet Preparations 1 (2200) (Greedy)
1607H.Banquet Preparations 2 (2200) (Greedy)
1567D.Expression Evaluation Error (2000) (Greedy + Constructive)
1260E. Tournament (2400) (Greedy + Heap)
865D.Buy Low Sell High (2400) (Greedy + Heap)
1061D.TV Shows (2000) (Sort + Greedy)
847D.Dog Show (2200) (Heap + Greedy)
1185E.Polycarp and Snakes (2000) (Brute Force + Implementation )
1493C. K-beautiful Strings (2000) (Greedy + Constructive)
1234C. Pipes (1500) (Implementation)
66D. Petya and His Friends (1700) (Constructive)
125C. Hobbits' Party (1600) (Constructive)
45J. Planting Trees (1800) (Constructive)
1015D. Walking Between Houses (1600) (Constructive)
439C.Devu and Partitioning of the Array (1700) (Constructive)
414A. Mashmokh and Numbers (1500) (GCD (a,a+1) == 1)
911E. Stack Sorting (2000) (Constructive + Stack)
12E. Start of the session(2100) (Constructive)
359B. Permutations (1400) (Constructive)
1098B.Nice table (2100) (Constructive + Brute Force)
404C.Restore Graph (1800) (Constructive + Graph)
960C.Subsequence Counting (1700) (Constructive)
1551D2.D2 - Domino (hard version) (2100) (Constructive)
1554D.Diane (1800) (Constructive + Thinking)
665D.Simple Subset (1800) (Constructive + 打表)
1508B.Almost Sorted (1800) (Observation + Construtive + Math)
459C.Pashmak and Buses (1900) (Greedy + Constructive)
670F.Restore a Number (2300) (Constructive)
1560E. Polycarp and String Transformation (1800) (Sort + Binary Search + Construtive)
1560F2. Nearest Beautiful Number (hard version) (2100) (Greedy + Construtive)
891B. Gluttony (2000) (Constructive )
432E.Square Tiling (2300) (Constructive + Greedy)
1204D2. D2 - Kirk and a Binary String (hard version)(2100) (Observation)
1530E. Minimax (2100) (Construvtice + String)
1213E.Two Small Strings (1900) (Constructive + Brute Force)
128D.Numbers (2000) (Constructive + list)
128B.String (2100) (Constructive + kth substring)
862C.Mahmoud and Ehab and the xor (1900) (Xor + Constructive)
1129B.Wrong Answer (2000) (Constructice + Math)
109D.Lucky Sorting (2000) (Constructice + Brute Force)
1373E.Sum of Digits (2200) (Greedy + Constructive)
1003E.Tree Constructing (2100) (Tree + Constructive)
22E.Scheme (2300) (Graph + Constructive)
1558C.Bottom-Tier Reversals (2000) ( Constructive )
1582D.Vupsen, Pupsen and 0 (1600) ( Constructive )
490E.Restoring Increasing Sequence (2000) ( Constructive + Greedy)
1349B.Orac and Medians (2000) (Constructive + Thinking + Observation)
1187C.Vasya And Array(1800) (Constructive + Line Sweep)
238B.Boring Partition (1800) (Constructive + Greedy)
773C.Prairie Partition (2200) (Greedy + Constructive)
734F. Anton and School(2500) (Thinking + Constructive + Math)
1618E. Singers' Tour (1700) (MAth + Constructive)
323B. Tournament-graph (2200) (Constructive)
1166D.Cute Sequences (2200) (Greedy + Math + Constructive)
226D.The table (2100) (Constructive + Thinking ) (Thumb)
894C.Marco and GCD Sequence (1900) (Constructive)
878B.Teams Formation (2300) ( Thinking + Constructive)
1419E.Decryption (2100) (Math + Constructive)
1158C.Permutation recovery (2100) (Graph + Constructive)
1231E.Middle-Out (2200) (Greedy + Constructive)
1305E.Kuroni and the Score Distribution (2200) (Constructive)
946E.Largest Beautiful Number (2200) (Constructive + Greedy)
1185F. Two Pizzas (2100) (Brute Force + Bit )
910B. Door Frames (1600) ( DFS )
1500A. Going Home (1800) (Brute Force)
1217C. The Number Of Good Substrings (1700) (Brute Force )
962D. Merge Equals (1600) (Implementation)
988E. Divisibility by 25 (2100) ( Brute Force)
27E.Number With The Given Amount Of Divisors (2000) (DFS)
58C. Trees (1800) (Implentation)
1095D.Circular Dance (1600) (Implementation)
1244C.The Football Season (2000) (Math + Brute Force)
903E.Swapping Characters (2200) (Brute Force + Observation)
1311D. Three Integers (2000) ( Brute Force + 打表 )
992D.Nastya and a Game (2100) (Math + Brute Force)
1257F.Make Them Similar(2400) (Meet In Middle + Hash)
1183F. Topforces Strikes Back (hard version) (2100) ( Brute Force + Time + Math )
466B. Wonder Room (2000) (Brute Force + Time Complexity)
1593D2.Half of Same (1900) (Time + Thinking)
1582F2.Korney Korneevich and XOR (hard version) (2400) ( Thinking )
1637E.Best Pair (Brute Force + Time)
1580C.Train Maintenance (2200) (Thinking + Brute Force)
1654E. Arithmetic Operations (2300) (Brute Force + Time Complexity)
965E.Short Code (2200) (Trie + Greedy + 启发式合并)
600E. Lomsat gelral (2300) (启发合并)
1380E. Merging Towers (2300) (启发式合并)
785E.Anton and Permutation (2200) (分块 + 逆序对)
1108E1. Array and Segments (Easy version) (1800) (Brute Force)
1359D. Yet Another Yet Another Task (2000) (Brute Force )
1092C.Prefixes and Suffixes (1700) (Brute Force)
540E.Infinite Inversions (2100) (无限逆序对+ Fenwick Tree + Thinking)
1208D. Restore Permutation (1900) (Constructive + Thinking + Fenwick Tree)
977D. Divide by three, multiply by two (1400) (Sort + Greedy)
1355C. Count Triangles (1800) (Binary Search + Sliding Window)
1334C. Circle of Monsters (1600) (思维 + Brute Force)
1519D. Maximum Sum of Products (1600) (Observation)
176B. Word Cut (1700) (DP + Observation)
1156B. Ugly Pair (1800) (Greedy)
1468H. K and Medians (2200) (Greedy + Reverse Thinking)
5E. Bindian Signalizing (2400) (Stack + Thinking + Observation)
988D. Points and Powers of Two (1800) (Observation + Thinking + Brute Force)
1536D. Omkar and Medians (2000) ( Thinking + Observation)
222A. Shooshuns and Sequence (1200) (Observation + Thinking)
1151B.Dima and a Bad XOR (1600) (Thinking + Observation)
558C. Amr and Chemistry (1900) (Thinking + Time Complexity)
1542C. Strange Function (1600) (Thinking + Math)
1542B. Plus and Multiply (1500) (Thinking + Math)
1025C. Plasticine zebra (1600) (Observation )
899D.Shovel Sale (1800) (Math + Thinking)
1555D.Say No to Palindromes (1600) (Observation + Brute Force + Prefix Sum)
59D.Team Arrangement (2000) (Implementation + Greedy + Thinking)
1438D.Powerful Ksenia (2200) (Thinking)
1567F.One-Four Overload (2700) (Thinking + Observation + Constructice)
1593G.Changing Brackets (2200) (Obsetvation)
1550C.Manhattan Subarrays) (1700) (Observation + Brute Force)
1005E2.Median on Segments (General Case Edition) (2400) ( Bound + Prefix )
1030E.Vasya and Good Sequences (2000) (Thinking + Brute Force + Bit)
675C.Money Transfers (2100) (Thinking + Prefix Sum + Transfer)
622E.Ants in Leaves (2200) (Tree + Thinking + Greedy)
1268C.K Integers (2300) (Thinking)
1553E. Permutation Shift (2100) (Thinking + Observation)
863D. Yet Another Array Queries Problem (1800) (Reverse + Thinking)
1592E.Bored Bakry (2400) (Two Pointer + Bit + Prefix + Thinking)
987E. Petr and Permutations (1800) (思维 + 逆数对)
911D. Inversion Counting (1800) (逆数对)
540EInfinite Inversions (2100) (无限逆序对+ Fenwick Tree + Thinking )
1363C. Game On Tree (1600) ( Game + Greedy)
78C. Beaver Game (2000) (Game)
1527B1. Palindrome Game (easy version) (1200) (Game)
1527B2. Palindrome Game (hard version) (1900) (Game)
55C. Pie or die (1900) (Game)
15C. Industrial Nim (2000) ( Nim Game + Bit + Xor )
39E. What Has Dirichlet Got to Do with That?(2000) (DP + Game + Optimization + MinMax)
1196E. Connected Component on a Chessboard (1800) (Chessboard + Constructive + Greedy)
1108E2. Array and Segments (Hard version) (2100) (差分 + DP + Prefix)
174C. Range Increments(1800) (差分 + Constructive)
1443D. Extreme Subtraction (1800) (差分)
1110E.Magic Stones (2200) ( 差分)
341D. Iahub and Xors(2500) (二维差分+2D Fenwick)
32C. Flea (1700) ( Math )
1151C.Problem for Nazar (1800) (Math)
597A.Divisibility (1600) (Math)
255D.Mr. Bender and Square (1800) (Binary Search + Math)
933B.A Determined Cleanup (2000) (Math + Constructive) (Thumb)
1004D.Sonya and Matrix (2300) (Thinking + Math Equation + Constructive)
354C.Vasya and Beautiful Arrays (2100) (Thinking + Math Mod + 打表)
1216E2. Numerical Sequence (hard version) (2200) (Binary Search + Math)
1154G. Minimum Possible LCM (2200) (Brute Force, LCM)
510D.Fox And Jumping (1900) (GCD + DP) (Thumb)
1146D.1146D (2100) (Math + GCD)
552C.Vanya and Scales (1900) (进制)
1603C. Extreme Extension (2300) (DP + Thinking + Math)
830C.Bamboo Partition (2300) (除法分块 + Math)
584D. Dima and Lisa (1800) (Math : 1个偶数可以拆两个素数 )
1512G. Short Task (1700) (Brute Force + 打表)
1359E.Modular Stability (2000) (Thinking + Number Theory + Combination)
45G. Prime Problem (2200) (Number Theory + Constructive)
1029D.Concatenated Multiples (1900) (Hash + Mod)
1537D. Deleting Divisors (1700) (Game + Number Theory)
1285C. Fadi and LCM (1400) (Math)
919E. Congruence Equation (2100) (费马小定理)
1500B. Two chandeliers (2200) (CRT and EXCRT)
615D.Multipliers (2000) (Combination + Math)
1575G.GCD Festival (2200) (GCD + PHI)
1101G.(Zero XOR Subset)-less (2300) (线性基)
845G.Shortest Path Problem? (2300) (线性基 + Graph + Thinking + Constructive)
222C. Reducing Fractions (1800) (超级打表) (Thump)
546D.Soldier and Number Game (1700) (打表 + Prefix Sum)
446C.DZY Loves Fibonacci Numbers (2400) (Segment Tree push down + Fib Number Property)
1295D. ame GCDs (1800) (GCD + Euler)
31D.Chocolate (2000) (Brute Force + Implementation + Geometry)
1185G2. Playlist for Polycarp (Hard version) (2600) (DP + Combination )
1516E. Baby Ehab Plays with Permutations (2500) (超难 Combination + DP + 容斥 + Permutation)
1515E. Phoenix and Computers (2200) (DP + Combination)
1513E. Cost Equilibrium (2300) (Observation + Combination)
57C. Array (1900) (Combination) (Thumb)
52B.Right Triangles (1600) (Combination)
224E.Partial Sums (1900) (Combination)
1536E. Omkar and Forest (2300) (Combination + Multiple BFS)
374B. Inna and Nine (1500) (Observation + Combination)
1550D. Excellent Arrays (2300) (Combination) (Thumb)
900D.Unusual Sequences (2000) (Combination + Math)
1557C.Moamen and XOR (1700) (Combination)
486D.Valid Sets (2100) (Tree + Combination)
336D.Vasily the Bear and Beautiful Strings (2100) (Combiniation + Observation)
1228E.Another Filling the Grid (2300) (DP + Combination)
1167F.Scalar Queries (2300) (Combination)
895D.String Mark (2100) (Com + String prefix)
451E.Devu and Flowers (2300) (容斥 + Lucas 定理)
327C.Magic Five (1700) (Geometric Progression)
213B. Numbers (1900) (DP + Combination)
439E. Devu and Birthday Celebration (2100) (Combination)
571A. Lengthening Sticks (2100) (Combination + Ball in box)
893E. Counting Arrays (2000) (Combination)
403D.Beautiful Pairs of Numbers (2200) (DP + Combination)
1622D.Shuffle (2000) (Thinking + Combination)
626D. Jerry's Protest (1800) (Combination + Probability)
803F.Coprime Subsequences (2000) (DP + 容斥 + Number Theory)
839D.Winter is here (2200) (容斥 + Combination)
1093F.Vasya and Array (2400) ( DP + 容斥)
920G.List Of Integers (2200) ( 容斥)
559C.Gerald and Giant Chess (2200) (Combination + DP + 容斥 + Unique Path 升级)
1342E.Placing Rooks (2300) (Com + 容斥) (Thumb)
1245F.Daniel and Spring Cleaning (2300) (数位DP + 二维容斥)
577B. Modulo Sum (1900) (鸽子原理 + DP)(对prefixsum 进行鸽子原理)
125D. Two progressions (2200) (Greedy + 鸽子)
333D. Characteristics of Rectangles (2100) (Binary Search + 鸽子)
618F. Double Knapsack (3000) (鸽子原理)
1095C.Powers Of Two (1400) (Induction)
1311E. Construct the Binary Tree (2200) (Constructive + Induction) (Thumb)
1196F. K-th Path (2200) (思维 + Shortest Path + Floy + Brute Force)
1133F1. Spanning Tree with Maximum Degree (1600) (Greedy + Graph)
1133F2. Spanning Tree with One Fixed Degree (1900) (Greedy + Graph + UF + Strongly Connect)
1472G. Moving to the Capital (2100) ( Graph + DP)
1334D. Minimum Euler Cycle (1800) (Graph + Greedy + Constructive + Math)
22C. System Administrator (1700) ( Constructive + Graph)
24A. Ring Road (1400) (Graph)
1439B.Graph Subset Problems (2600) (Graph)
117C. Cycle (2000) (Graph)
920E. Connected Components? (2100) (Graph)
999E.Reachability from the Capital (2000) (Graph)
196B. Infinite Maze (2000) (Graph + Thinking + Matrix)
1005F.Berland and the Shortest Paths (2100) ( Graph + BFS )
67A.Partial Teacher (1800) (Direct Graph + DP)
986C.AND Graph (2500) (Graph)
301B.Yaroslav and Time (2100) (Shortest Path + Thinking ) (Thumb)
1364D.Ehab's Last Corollary (2100) (Graph + DFS 最小环)
915D.Almost Acyclic Graph (2200) (Graph + Thinking)
1355F.Robots on a Grid (2200) (Graph + Thinking)
274D.Lovely Matrix (2200) (Graph Model + Topo)
886D. Restoration of string(2000) ( Graph + Construtive + String )
1105E. Helping Hiasat (2200) ( Maximum Independent Set + DP )
1468M. Similar Sets (2300) (Graph + 四环图)
160D.Edges in MST (2300) (Graph + MST + Tarjan)
894E.Ralph and Mushrooms(2100) (Tarjan Direct) |2021/01/30|
1411C. Peaceful Rooks (1700) (Cycle Direct Graph)
1547G. How Many Paths? (2100) (Direct Graph Cycle + DP )
1217D. Coloring Edges (2100) (Direct - Graph + Thinking)
1354E. Graph Coloring (2100) (DP + Bipartite Graph)
27D. Ring Road 2(2200) ( Bipartile Graph)
1537F. Figure Fixing (2200) (Graph + Bipartile)
1220E.Tourism (2200) (无向图缩点 + Tree DP ) (Thumb)
813F. Bipartite Checking (2500) (Dynamic Connectivity + Online Bipartile checking)
788B.Weird journey (2100) (Euler Path + Thinking)
416E. President's Path(2500) (Shortest Path + DP)
1486E. Paired Payment (2200) (Graph + SPFA)
1520G. To Go Or Not To Go? (2200) (Graph + Shortest Path )
1473E. Minimum Path (2400) (Shortest Path)
37E. Trial for Chief(2600) (Shortest Path + Thinking) (Thumb)
450D. Jzzhu and Cities (2000) (Shortest Path + Thinking) (Thumb)
545E.Paths and Trees (2000) (shortest path + thinking)
386D.Game with Points (2100) (Shortest Path)
1051F. The Shortest Statement (2400) (LCA + Shortest Path + Tree + Thinking )
59E.Shortest Path (2000) (Shortest Path)
1070A. Find a Number(2200) (Shortest Path)
543B. Destroying Roads (2100) (Shortes Path + Thinking) (Thumb)
369D. Valera and Fools (2200) (Thinking + Shortest Path + DP)
821D.Okabe and City (2200) (Graph Building + Shortest Path) (Thumb)
1650G.Counting Shortcuts (2100) (Shortest Path + DP)
1442C.Graph Transpositions (2400) (Thinking + Shortest Path)
1063B. Labyrinth (1800) (Thinking + 01-BFS )
33B String Problem (1800) (Shortest Path)
1205B. Shortest Cycle(1900) (Shortest Cycle in Weight1) (Thumb)
237E. Build String (2000) (Minimum Cost Max Flow )
316C1.Tidying Up (2200) (Maximum Flow Minimum Cost)
776D. The Door Problem (2000) (2 Sat)
1475F. Unusual Matrix (1900) (2 Sat)
274D.Lovely Matrix (2200) (Graph Model + Topo)
292D.Connected Components (1900) (UF + Graph + Thinking)
195E.Building Forest (2000) (UF + Tree) (Thumb)
1618G. Trader Problem (2200) (UF + Sort)
125E. MST Company (2400) (MST + Thinking)
1095F.Make It Connected (1900) (MST + Greedy)
1242B. 0-1 MST (1900) (MST + Graph)
1108F. MST Unification (2100) (MST + Thinking)
1657E. Star MST (2200) (MST + DP + Combination)
888G. Xor-MST (2300) (MST + Trie + Bit + Divide Conquer + Boruvka's algorithm)
1140F.Extending Set of Points (2600) (Dynamic Connectivity)
813F. Bipartite Checking (2500) (Dynamic Connectivity + Online Bipartile checking)
118E. Bertown roads (2000) (Graph + Tarjan + SCC)
448E. Divisor (2200) (DFS + 剪枝)
1528A. Parsa's Humongous Tree (1600) (Tree + DP)
61D. Eternal Victory (1800) (Tree)
1092E. Minimal Diameter Forest (Tree + Greedy)
960D.Full Binary Tree Queries (2100) (Math + Tree)
1551F.Equidistant Vertices (2200) (DP + Tree)
472D.Design Tutorial: Inverse the Problem(1900) (MST + Tree + Greedy)
963B.Destruction of a Tree (2000) (Tree)
700B.Connecting Universities (1800) (Greedy + Tree)
463E. Caisa and Tree (2100) (Tree )
859E. Desk Disorder (2100) (Combination + Tree + Graph )
980E.The Number Games (2200) (Tree + Sparse + Greedy) (Thumb)
1363E. Tree Shuffling (2000) (Tree + Greedy)
369C.Valera and Elections (1600) (Tree)
1632E1.Distance Tree (easy version) (2400) (Thinking + Tree + Brute Force)
1132G.Greedy Subsequences (2400) (Seg push + Tree + DP)
744F. Tree Destruction (2400) (Tree + Greedy )
734E. Anton and Tree (2100) (Tree)
1575I.Illusions of the Desert (2300) (Tree + LCS + Tree Euler + Tree Path Query)
337D.Book of Evil (2000) (Tree Re-Range)
914E. Palindromes in a Tree (2400) (点分治)
342E.Xenia and Tree (2400) (Centroid Decomposition)
675D.Tree Construction (1800) (Binary Search Tree + Observation)
926J.Segments (2100) (Tree Set + Merge Set )
45C. Dancing Lessons (1900) (TreeMap)
1364C. Ehab and Prefix MEXs (1600) (Greedy + BIT)
1354D.Multiset (1900) (Fenwick Tree)
899F.Letters Removing (2100) (BinarySearch + Fenwick)
459D.Pashmak and Parmida's problem (1800) (Fenwick Tree)
1553F. Pairwise Modulo (2300) (Fenwick + Math + Thinking)
1579E2.Array Optimization by Deque (1700) (Fenwick)
703D.Mishka and Interesting sum (2100) (Fenwick + Thinking)
1616E.Lexicographically Small Enough(2200) (Fenwick)
45B.School (2200) (DP + Sparse Table + Brute Force + Time)
466E. Information Graph (2100) (OffLine + Sparse Table + Tree)
359D. Pair of Numbers (2000) (Binary Search + Sparse Table)
475D.CGCDSSQ (2000) (GCD + Sparse Table)
1328E. Tree Queries (1900) (LCA + Sprase Table + Thinking)Thumb up!
609E.Minimum spanning tree for each edge (2100) (MST + Thinking + LCA Template)
519E.A and B and Lecture Rooms (2100) (Tree + LCA)
597C.Duff in the Army (2200) (LCA)
1304E.1-Trees and Queries (2000) ( LCA )
165D.Beard Graph (2100) (LCA + Fenwick)
1220F.Gardener Alex (2700) (Cartesian Tree + Binary Search + Segment Tree + Tree)
981E. Addition on Segments (2200) (Dp + Segment Tree + Divide Conquer)
911G. Mass Change Queries (2500) (Segment Tree Tag )
474F.Ant colony (2100) (Segment Tree + GCD + Binary Search)
756C.Nikita and stack (2200) (Thinking + Segment Tree)
1585E.Frequency Queries (2400) (Seg)
877E. Danil and a Part-time Job (2000) (Tree + Segment Tree Push)
833B. The Bakery (2200) (DP + Seg push down)
446C.DZY Loves Fibonacci Numbers (2400) (Segment Tree push down + Fib Number Property)
1295E.Permutation Separation (2200) (Segment Tree pushDown + Thinking)
1326E.Bombs (2400) (Thinking + Seg push down)
1527E.Partition Game (2500) (DP + Thinking + Seg push down)
85D.Sum of Medians (2300) (Seg push + Thinking)
620E.New Year Tree (2100) (Seg Push + Tree + Bit)
817F.MEX Queries (2300) (Segment Update + rever a bit rangg + Cpp) (Thumb)
960F.Pathwalks (2100) (DP + Lazy Segment Tree)
1439C. Greedy Shopping (2600) (Segment Tree Range Update + Segment Tree Binay Search)
558E. A Simple Task (2300) (Segment Tree Range Update)
1136E.Nastya Hasn't Written a Legend (2200) (Segment SetTo + Math)
343D.Water Tree (2100) (Tree + Seg push)
52C. Circular RMQ (2200) (Range Update Min Lazy Seg)
1555E.Boring Segments (2100) (Seg + Range Update)
484E. Sign on Fence (2500) (Persistant Segment Tree + Segment Tree Merge Interval + Binary Search)
813E. Army Creation (2200) (Thinking + Persistant Tree)
1000F.One Occurrence (2400) (莫队,主席树)
786C.Till I Collapse (2400) (Persistant Tree)
1379C. Choosing flowers (2000) (Binary Search + Math)
1177B. Digits Sequence (Hard Edition) (1800) (Binary Search + Math)
448D. Multiplication Table (1800) (Binary Search )
1066D. Boxes Packing (1800) (Binary Search)
1538G. Gift Set (2100) (BinarySearch + Math)
1547F. Array Stabilization (GCD version) (2100) (Math + BinarySearch + Segment Tree + GCD )
808D. Array Division (1900) (Binary Search + Prefix Sum )
349C.Mafia(1600) (Binary Search + Thinking)
258C.Little Elephant and LCM (2000) ( Binary Search )
439D.Devu and his Brother (1700) (Binary Search + Convex Line)
1355E. Restorer Distance (2100) (Tenery Search)
808E.Selling Souvenirs (2300) (Tenary Search)
514C.Watto and Mechanism (2000) (String Polynomial Hash)
1056E.Check Transcription (2100) (Rolling Hash)
126B. Password (1700) (KMP+ Z algorithm)
1537E2. Erase and Extend (Hard Version) (2200) (Suffix Structure + Z-algorithm)
1015F. Bracket Substring (2300) (DP + KMP)
1029A.Many Equal Substrings (1300) (KMP)
432D.Prefixes and Suffixes (2000) (KMP + DP)
123D. String (2300) (Suffix Array LCP + Stack)
552E.Vanya and Brackets (2100) (Expression Tree + Observation)
1514D. Cut and Stick (2000) (Greedy + 莫队 + Update max)
86D. Powerful Array (2200) (莫队)
940F. Machine Learning (2600) (莫队修改)
617E. XOR and Favorite Number (2200) (莫队 + Prefix)
1174D.Ehab and the Expected XOR Problem (1900) (bit + Thinking + Prefix )
1513B. AND Sequences (1400) (Bit + Greedy + Combination)
1338B. Edge Weight Assignment (1800) (Greedy + Bit + Tree)
1234D. Distinct Characters Queriese (1600) (TreeSet)
276D. Little Girl and Maximum XOR (1700) (Bit + Greedy)
652D. Nested Segments (1800) (Sort + Divide Conquer + Thinking)
1156E. Special Segments of Permutation (2200) (Divide Conquer + Segment Tree) (Thumb)
888E. Maximum Subsequence (1800) (Divide Conquer + Meet in Middle )
1520F2. Guess the K-th Zero (Hard version) (2200) (Binary Search+ Divide Conquer)
1400E. Clear the Multiset (2200) (Greedy + Divide Conquer) (Thumb)
1601C. Optimal Insertion (2300) (Divide Conquer)
848C. Goodbye Souvenir(2600) (CDQ 分支)
1093E. Intersection of Permutations (2400) (CDP 分支二维)
912E.Prime Gift (2400) (Brute Force + Meet in Middle)
1567E.Non-Decreasing Dilemma (2200) (Segment Tree + Divide Conquer)
954I. Yet Another String Matching Problem (2200) (FFT)
1520F1. Guess the K-th Zero (Easy version) (1600) (Binary Search)
45D. Event Dates (1900) (Sort)
1183G. Candy Box (hard version) (hard version) (2000) ( Sort + Greedy )
978G. Petya's Exams (1700) (Greedy + Sort)
73B. Need For Brake (2000) (Greedy + Sort)
1151D.Stas and the Queue at the Buffet (1600) (Sort + Greedy)
1547E. Air Conditioners (1500) (left/right dp + sort)
12D. Ball (2400) (Sort + Segment Tree)
1213D2.Equalizing by Division (hard version) (1600) (Sort)
754D.Fedor and coupons (2100) (Sort)
220C.Little Elephant and Shifts (2100) (Two Heap Moving + Thinking)
1029C.Maximal Intersection (1600) (Left/Right DP + Interval Problem)
1285E. Delete a Segment (2300) (Interval Problem + TreeMap + BinarySearch + left/right DP + Segment Tree)
863E. Turn Off The TV (2000) (Interval Problem)
369E. Valera and Queries(2200) (offline + Fenwick + Thinking + Line)
1638E.Colorful Operations (2400) (Thinking + Interval Problem)
915E.Physical Education Lessons (2300) (Interval)
689E.Mike and Geometry Problem (2000) (Combination + Lined Sweep) (Thumb)
1630C.Paint the Middle(2200) ( Thinking + Interval)
190D. Non-Secret Cypher (1900) (Two Pointer + Segment Tree)
224B. Array (1500) (Two Pointer + Thinking)
1029F.Multicolored Markers (2000) (Two Pointer)
386C.Diverse Substrings (2000) (Two Pointer)
514D.R2D2 and Droid Army (2000) (Two Pointer + Segment Tree)
846F.Random Query (1800) (Two Pointer)
1244E.Minimizing Difference (2000) (Two Pointer + Greedy)
954G. Castle Defense (2000) (Binary Search + Two Pointer)
620D.Professor GukiZ and Two Arrays (2200) ( Two Pointer )
1322B.Present (2100) (Math + Bit + Two Pointer)
1632D.New Year Concert (2000) ( Two Pointer + Seg + GCD)
37C. Old Berland Language (1900) (Dfs + Trie)
1285D. Dr. Evil Underscores (1900) (Bit + Trie)
665E.Beautiful Subarrays (2100) (Trie + XOR + Array Implementation)
842D.Vitya and Strange Lesson (2000) (Trie + Bitmask + Thinking)
979D.Kuro and GCD and XOR and SUM (2200) (Trie)
224C. Bracket Sequence (1700) (Stack)
280B.Maximum Xor Secondary (1800) (Monotic Stack)
817D.Imbalanced Array (1900) (Stack) (Thumb)
899E.Segments Removal (2000) (UF + Double LinkedList)
920F.SUM and REPLACE (2000) (Double LinkedList + UF)
670E.Correct Bracket Sequence Editor (1700) (LinkedList)
89C. Chip Play (2300) (DFS + 十字linkedlist)
1095E.Almost Regular Bracket Sequence (1900) (Implementation)
571B. Minimization (2000) (DP + k skip)
1270G.Subset with Zero Sum (2700) (Thinking + Graph + Sort + Math)
362E.Petya and Pipes (2300) (mcmf)
546E.Soldier and Traveling (2100) (flow + Graph Construct)
ACW 89. a ^ b (E) (快速幂)
ACW 92. 递归实现指数型枚举 (E) (枚举)
ACW 103. 电影 (E) (HashMap)
ACW 104. 货仓选址 (E) (中位数)
ACW 107. 超快速排序 (E) (逆序对 + 树状数组)
ACW 109. 天才ACM (H) (倍增 + 时间判断)
ACW 122. 糖果传递 (M) (思维 + 中位数)
ACW 147. 数据备份 (H) (思维 + 贪心 + 堆)
ACW 158. 项链 (E) (string 最小表示法)
ACW 201. 可见的点 (E) (欧拉函数模板)
ACW 212. 计数交换 (E) (组合)
ACW 214. Devu和鲜花 (M) (容斥 + 组合)
ACW 230. 排列计数 (E) (错排 + 组合)
ACW 244. 谜一样的牛 (E) (二分法 + BIT)
ACW 255. 第K小数 (M) (二分法 + 主席树)
ACW 256. 最大异或和 (M) (可持续Trie)
ACW 257. 关押罪犯 (M) (二分 + 二分图染色)
ACW 300. 任务安排1 (M) (DP + Thinking)
ACW 301. 任务安排2 (H) (DP + 斜率优化模板)
ACW 302. 任务安排3 (H) (DP + 非单调斜率优化模板)
ACW 310. 启示录 (M) (数位DP)
ACW 333. 最大子矩阵 (E) (DP + stack)
ACW 345. 牛站 (M) (倍增 + 最短路)
ACW 372. 棋盘覆盖 (M) (二分图最大匹配)
ACW 373. 車的放置 (E) (二分图最大匹配)
84. Largest Rectangle in Histogram (H) (Cartesian Tree)
2097. Valid Arrangement of Pairs (H) (Eulaer path + Eule Circuit)
2021 D3. Final Exam (TreeSet)
2021 D2. Cutting Interval (Line Sweep)