You are viewing a single comment's thread. Return to all comments →
from collections import deque lst = deque([]) for _ in range(int(input())): eval('lst.{0}({1})'.format(*input().split() + [''])) print(*lst)``
Seems like cookies are disabled on this browser, please enable them to open this website
Collections.deque()
You are viewing a single comment's thread. Return to all comments →