string s=stdin;for(int b=length(s),j,i;i<=b;++i)for(j=0;j<i;)write(substr(s,b-i,++j));
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page