rotate counterclockwise by darkf

main(){int m[999],c,i=0,n=0,h;while((c=getchar())>0){m[i++]=c;c==10&&!n?n=i:0;}h=i/n+1;for(c=n-1;c;c--){for(i=0;i<h;i++)putchar(m[i*n+c-1]);puts("");}}

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

download

return to the top page