You are viewing a single comment's thread. Return to all comments →
from collections import deque d = deque() for _ in range(int(input())): func_arg = input().split() func = getattr(d, func_arg[0]) if len(func_arg) == 1: func() else: func(func_arg[1]) print(" ".join(d))
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 →