Count diamonds level 2 by 51b

import std.stdio;int m,s;void main(){for(;~scanf("%s",&s);)s=m+=s%2*m?writeln(m/2),-m:s==42;}

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

download

return to the top page