Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = open("tests.in", "rb")
- out = open("out.txt", "wb")
- s = t.readline().split()[0]
- z = []
- lst = 0
- print(len(s))
- while s.find(b"\xd0\xac", lst) != s.find(b"."):
- z.append(s[lst:s.find(b"\xd0\xac", lst)])
- lst = s.find(b"\xd0\xac", lst) + 2
- z.append(s[lst:])
- for s in z:
- a = []
- for i in range(0, len(s), 22):
- c = s[i:i + 22]
- c = c.replace(b"\xd0\xab", b'1')
- c = c.replace(b"\xd1\x8b", b'0')
- a.append(int(c, 2))
- for i in a:
- out.write(chr(i).encode())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement