Count diamonds level 1 by 51b

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

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

download

return to the top page