SHARE
TWEET

Untitled

a guest Mar 1st, 2016 244 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top