rotate lines reversely by chocobi

string s,t,u[];for(;!eof(stdin);)if ((s=getc(stdin))!='\n')t+=s;else{u.push(t);t="";}write(u.pop());for(int i;;++i)write(u[i]);

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

download

return to the top page