https://www.acmicpc.net/problem/10866 10866번: 덱 첫째 줄에 주어지는 명령의 수 N (1 ≤ N ≤ 10,000)이 주어진다. 둘째 줄부터 N개의 줄에는 명령이 하나씩 주어진다. 주어지는 정수는 1보다 크거나 같고, 100,000보다 작거나 같다. 문제에 나와있지 www.acmicpc.net code #덱 import sys input = sys.stdin.readline from collections import deque a = [] deq = deque(a) n = int(input()) for _ in range(n): c = input().split() if c[0] == 'push_front': deq.appendleft(c[1]) elif c[0] == '..