Related posts:
Running with Obstacles
Bob and stages
Randomized Heap
Marvolo Gaunt's Ring
Hidden Bipartite Graph
New Year and the Christmas Ornament
Bear and Contribution
Adding Digits
Chinese Remainder Theorem
Checking a graph for acyclicity and finding a cycle in $O(M)$
Civilization
Superhero's Job
Black and White Tree
Bash Plays with Functions
Cow and Haybales
Om Nom and Candies
Modernization of Treeland
Beautiful Mirrors with queries
Prefix-Suffix Palindrome (Hard version)
Gauss method for solving system of linear equations
Gena and Second Distance
A + B Strikes Back
Bears and Juice
Eevee
New Year Tree Decorations
Watchmen
Can Bash Save the Day?
Princesses and Princes
Game with Powers
Cowboy Beblop at his computer
Dating
Connected Components