Wsh's Blog
Competitive Programming: From Zero to Jiangly
A comprehensive topic-by-topic competitive programming checklist, from no programming experience through every Codeforces rating milestone to elite Jiangly and tourist-level training.
Aliens DP: A Penalty Removes a Dimension, Convexity Gives It Back
Understand the supporting-line view of Lagrangian DP, monotone segment counts, tie breaking, and the skipped-count trap.
Bostan-Mori: The Trillionth Term Without a Trillion States
Extract a huge-index coefficient of a rational generating function by eliminating alternating coefficients.
CDQ Convolution DP: Batch Transitions Without Reading the Future
A dependency-first derivation of semi-online convolution with an exact-once proof and a worked recurrence.
Codeforces Round 162 (Div. 2) - A-E Editorial
From an ordered escape construction to prime-factor DP and a color-aware weighted subsequence.
Codeforces Round 250 (Div. 1) - A-E Editorial
Complete A-E solutions: DSU bottlenecks, concave polygon triangulation, amortized modulo updates, and a 3100-rated FPS finale.

Codeforces Round 256 (Div. 2) - A-E Editorial
All five solutions, including multiplication-table order statistics and output-sensitive divisor expansion.
Codeforces Round 267 (Div. 2) - A-E Editorial
A-E solutions with exact-k segment DP, reverse-graph cost propagation, and a greedy alternating-block detector.
Codeforces Round 271 (Div. 2) - A-F Editorial
Complete A-F coverage: reconstruction DP, rotation enumeration, prefix sums, and gcd survival queries.
Codeforces Round 277.5 (Div. 2) - A-F Editorial
All six solutions, with ratio-to-DAG optimization and a quadratic matrix-completion DP.



























































