Count diamonds level 2 by chocobi

n,s[99];main(){for(;~scanf("%s",s);)n=*s&1?n?!printf("%d\n",n/2):n:*s&768?n:n+1;}

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

download

return to the top page