Синицын Виктор Сергеевич, 319/1 EncPairs 15259 | Дубяга Данил, 316 EncPairs 14910 | ||||
---|---|---|---|---|---|
f | 1 | import sys | f | 1 | import sys |
n | 2 | encodincs = ['KOI8-R', 'CP1251', 'MACCYRILLIC', 'CP866', 'ISO-8859-5', ' | n | 2 | encs = ['KOI8-R', 'CP1251', 'MACCYRILLIC', 'CP866', 'ISO-8859-5', 'CP855 |
> | CP855'] | > | '] | ||
3 | b = sys.stdin.buffer.read() | 3 | b = sys.stdin.buffer.read() | ||
n | 4 | flag = False | n | 4 | ok = False |
5 | for cod1 in encodincs: | 5 | for enc1 in encs: | ||
6 | for cod2 in encodincs: | 6 | for enc2 in encs: | ||
7 | for cod3 in encodincs: | 7 | for enc3 in encs: | ||
8 | try: | 8 | try: | ||
n | 9 | s = b.decode(cod1).encode(cod2).decode(cod3) | n | 9 | s1 = b.decode(enc1).encode(enc2).decode(enc3) |
10 | if 'Зимбабве' in s: | 10 | if 'Зимбабве' in s1: | ||
11 | print(s) | 11 | print(s1) | ||
12 | flag = True | 12 | ok = True | ||
13 | break | ||||
14 | except: | 13 | except: | ||
15 | pass | 14 | pass | ||
n | 16 | if flag: | n | 15 | if ok: |
17 | break | 16 | break | ||
n | 18 | if flag: | n | 17 | if ok: |
19 | break | 18 | break | ||
t | 20 | if flag: | t | 19 | if ok: |
21 | break | 20 | break |
Legends | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
|