fork download
  1. object Main extends App{val n=readInt;var s=" "*n;for(i<-97 to n+96){s=s.tail+f"$i%c";println("a"+s)}}
Success #stdin #stdout 0.42s 382016KB
stdin
26
stdout
a                         a
a                        ab
a                       abc
a                      abcd
a                     abcde
a                    abcdef
a                   abcdefg
a                  abcdefgh
a                 abcdefghi
a                abcdefghij
a               abcdefghijk
a              abcdefghijkl
a             abcdefghijklm
a            abcdefghijklmn
a           abcdefghijklmno
a          abcdefghijklmnop
a         abcdefghijklmnopq
a        abcdefghijklmnopqr
a       abcdefghijklmnopqrs
a      abcdefghijklmnopqrst
a     abcdefghijklmnopqrstu
a    abcdefghijklmnopqrstuv
a   abcdefghijklmnopqrstuvw
a  abcdefghijklmnopqrstuvwx
a abcdefghijklmnopqrstuvwxy
aabcdefghijklmnopqrstuvwxyz