Codeforces Round #426 (Div. 1) B The Bakery (线段树+dp)

NoSuchKey