wave line by Mark Byers

a=''
b=20
c=0
d=[a]*99
for _ in raw_input():b+=cmp(a,_);d[b]=d[b].ljust(c)+_;a=_;c+=1
for _ in d:
 if _:print _

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page