Skip to content

Instantly share code, notes, and snippets.

@ebroder
Created August 1, 2010 04:33
Show Gist options
  • Save ebroder/502948 to your computer and use it in GitHub Desktop.
Save ebroder/502948 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import sys
lines = int(sys.stdin.readline().strip())
ciphertext = sys.stdin.read().split()
out = []
for i in xrange(len(ciphertext[0])):
for j in xrange(lines):
out.append(ciphertext[j][i])
print ''.join(reversed(out)).replace('_', ' ').replace('\\', '\n').strip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment