fork download
  1. s=' '*input()
  2. c=97
  3. for i in s:
  4. s=s[1:]+chr(c)
  5. c+=1
  6. print'a'+s
Success #stdin #stdout 0.01s 7900KB
stdin
5
stdout
a    a
a   ab
a  abc
a abcd
aabcde