Skip to content

Instantly share code, notes, and snippets.

@darkfeline
Last active April 17, 2016 03:26
Show Gist options
  • Select an option

  • Save darkfeline/dad6869cc6ce7dea24f47d5b1834202a to your computer and use it in GitHub Desktop.

Select an option

Save darkfeline/dad6869cc6ce7dea24f47d5b1834202a to your computer and use it in GitHub Desktop.
import sys
print('\n'.join(' '.join(col) for col in zip(*reversed([line.split(' ') for line in sys.stdin.read().rstrip().split('\n')]))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment