N = int(raw_input()) wd = [raw_input() for line in range(N)] wd = sorted(wd, key = lambda x : x[::-1]) for w in wd: print w
0 件のコメント:
コメントを投稿