Назаров Дмитрий 519/2 PackedQueue 2968
Миронов Денис, 519/2 группа PackedQueue 2153
f1from collections import dequef1from collections import deque
n2deq = deque()n2conv = deque()
3for o in eval(input()):3for obj in eval(input()):
4    if isinstance(o, tuple):4    if isinstance(obj, tuple):
5        deq.extend(o)5        conv.extend(obj)
6    elif isinstance(o, int):6    elif isinstance(obj, int):
7        deq2 = deque()7        tmp = deque()
8        try:8        try:
n9            for _ in range(o):n9            for _ in range(obj):
10                deq2.append(deq.popleft())10                tmp.append(conv.popleft())
11        except IndexError:11        except IndexError:
12            break12            break
t13        print(tuple(deq2))t13        print(tuple(tmp))
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op