Codeforces Round #515 (Div. 3)C. Books Queries【模拟,思维】

NoSuchKey