Guest User

Untitled

a guest
Mar 1st, 2016
990
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. import sys
  2. print "".join(sorted(map(lambda s: s.rstrip(), sys.stdin.readlines()[1:]), cmp=lambda x,y: cmp(x+y,y+x)))
Add Comment
Please, Sign In to add comment