jzadorozhnaya ClassOnly 17690 | Панферов Виктор ClassOnly 13753 | ||||
---|---|---|---|---|---|
f | 1 | from itertools import product | f | 1 | from itertools import product |
2 | 2 | ||||
3 | class Struct: | 3 | class Struct: | ||
4 | __slots__ = [] | 4 | __slots__ = [] | ||
n | 5 | _s = frozenset(map(''.join, product('abcd', repeat=4))) | n | 5 | _fuk = frozenset(map(''.join, product('abcd', repeat=4))) |
6 | 6 | ||||
7 | def __getattribute__(self, attr): | 7 | def __getattribute__(self, attr): | ||
t | 8 | if attr in Struct._s: | t | 8 | if attr in Struct._fuk: |
9 | return attr | 9 | return attr | ||
10 | raise AttributeError() | 10 | raise AttributeError() |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|