Codeforces Round #575 (Div. 3) D1. RGB Substring (easy version)

NoSuchKey