Иван Сеченых, 521 (асвк+мк+мс) ClassOnly 15136 | Крет Вячеслав Александрович, 321 группа ClassOnly 14340 | ||||
---|---|---|---|---|---|
f | 1 | from itertools import product | f | 1 | from itertools import product |
n | 2 | check = {''.join(q) for q in product('abcd', repeat=4)} | n | 2 | example = {''.join(i) for i in product('abcd', repeat=4)} |
3 | 3 | ||||
4 | class Struct: | 4 | class Struct: | ||
5 | __slots__ = () | 5 | __slots__ = () | ||
6 | 6 | ||||
t | 7 | def __getattribute__(self, name): | t | 7 | def __getattribute__(self, item): |
8 | if name in check: | 8 | if item in example: | ||
9 | return name | 9 | return item | ||
10 | raise AttributeError() | 10 | raise AttributeError |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|