p=c=1;for(i in 1:scan("stdin"))cat(i,"if"(i==p,{p=p+(c=c+1);" "}," "),sep="")
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page