STRING by koi

char s[999];i,n;main(a){for(;scanf("%d%s%d",&n,s,&a)>2;)for(i=abs(a*n);i+1;)putchar(i--?s[a>0?n-1-i%n:i%n]:10);}

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

download

return to the top page