Count diamonds level 1 by pooq

a=readLines("stdin");n=0;for(i in 1:220){n=n+40-nchar(gsub("[*]","",a[i]));if(i%%11<1){write(n/5,T);n=0}}

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

download

return to the top page