opencup.ru: GP of Two Capitals
Problem B was very interesting, but haven't overcome tc #7.
CodeChef Starters 134 Solution Discussion