Count diamonds level 3 by 51b

import std.stdio;void main(){foreach(ubyte[]s;chunks(stdin,454)){int n;foreach(i,c;s[42..$])c&s[i+2]&s[i]^42||n++;writeln(n);}}

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

download

return to the top page