B. Nick and Array(数学+贪心)Codeforces Round #569 (Div. 2)

NoSuchKey