Array Optimization by Deque

Problem Name:
Array Optimization by Deque
Site:CodeForces
Links:
Tags:
Problem setters: