2010-02-07から1日間の記事一覧
諸事情で書いたので. 入力は標準入力、出力は標準出力. #!/usr/bin/env python # -*- coding: utf-8 -*- from sys import stdin, stdout def decode(s): result = '' t = [ord(c) for c in s] + [0] i = 0 while i < len(s): rnd = (t[i] >> 4) & 0x3 ch = (…
諸事情で書いたので. 入力は標準入力、出力は標準出力. #!/usr/bin/env python # -*- coding: utf-8 -*- from sys import stdin, stdout def decode(s): result = '' t = [ord(c) for c in s] + [0] i = 0 while i < len(s): rnd = (t[i] >> 4) & 0x3 ch = (…