Codeforces-solutions/Educational Codeforces Round 40 (Rated for Div. 2)