Guest User

Untitled

a guest
Mar 1st, 2016
424
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)))
RAW Paste Data