| Горошко Артём Дмитриевич, 321 группа ClassOnly 15203 | Мозговых Василий Владимирович, 401 группа ClassOnly 14604 | ||||
|---|---|---|---|---|---|
| f | 1 | from itertools import product | f | 1 | from itertools import product | 
| n | 2 | arr = set((''.join(i) for i in product('abcd', repeat=4))) | n | 2 | slots = set((''.join(abcd) for abcd in product('abcd', repeat=4))) | 
| 3 | 3 | ||||
| 4 | class Struct: | 4 | class Struct: | ||
| n | 5 | __slots__ = tuple() | n | 5 | __slots__ = set() | 
| 6 | 6 | ||||
| t | 7 | def __getattribute__(self, name): | t | 7 | def __getattribute__(self, attr): | 
| 8 | if name in arr: | 8 | if attr in slots: | ||
| 9 | return name | 9 | return attr | ||
| 10 | else: | 10 | else: | ||
| 11 | raise AttributeError | 11 | raise AttributeError | ||
| Legends | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 
 | 
 | |||||||||