a guest Mar 1st, 2016 244 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import sys
- print "".join(sorted(map(lambda s: s.rstrip(), sys.stdin.readlines()[1:]), cmp=lambda x,y: cmp(x+y,y+x)))
RAW Paste Data