Count diamonds level 3 by chocobi

c,n,b[9999];main(p){for(;c=getchar()+1;)n=n&&c&4?!printf("%d\n",n):n+((b[++p]=c==43)&&b[p-2]*b[p-42]);}

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

download

return to the top page