| Андрей Спиваков, 524 группа NegExtender 11956 | Павшинский Даниил, 206 группа NegExtender 12326 | ||||
|---|---|---|---|---|---|
| f | 1 | class NegExt: | f | 1 | class NegExt: | 
| 2 | 2 | ||||
| 3 | def __neg__(self): | 3 | def __neg__(self): | ||
| 4 | try: | 4 | try: | ||
| n | 5 | result = super().__neg__() | n | 5 | res = super().__neg__() | 
| 6 | except Exception: | 6 | except Exception: | ||
| 7 | try: | 7 | try: | ||
| n | 8 | result = self[1:-1] | n | 8 | res = self[1:-1] | 
| 9 | except Exception: | 9 | except Exception: | ||
| t | 10 | result = self | t | 10 | res = self | 
| 11 | return self.__class__(result) | 11 | return self.__class__(res) | ||
| Legends | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 
 | 
 | |||||||||