arc068f专题

ARC068F Solitaire

题目: Problem Statement Snuke has decided to play with N cards and a deque (that is, a double-ended queue). Each card shows an integer from 1 through N, and the deque is initially empty. Snuke will i