Codeforces Round #553 (Div. 2) D. Stas and the Queue at the Buffet 贪心+公式转化

NoSuchKey