Codeforces Round #744 (Div. 3) (Permutation Minimization by Deque)双端队列

NoSuchKey