Георгий Попандопуло, 520 группа PackedQueue 3036 | Пахненко Иван 516 PackedQueue 2830 | ||||
---|---|---|---|---|---|
t | 1 | conv = eval(input()) | t | 1 | conv = eval(input()) |
2 | cov_tur = [] | 2 | cov_tur = [] | ||
3 | for i in conv: | 3 | for i in conv: | ||
4 | if type(i) != int: | 4 | if type(i) != int: | ||
5 | [cov_tur.append(j) for j in i] | 5 | [cov_tur.append(j) for j in i] | ||
6 | elif i <= len(cov_tur): | 6 | elif i <= len(cov_tur): | ||
7 | print(tuple(cov_tur[:i])) | 7 | print(tuple(cov_tur[:i])) | ||
8 | cov_tur = cov_tur[i:] | 8 | cov_tur = cov_tur[i:] | ||
9 | else: | 9 | else: | ||
10 | break | 10 | break |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|