Count diamonds level 1 by 51b

-module(d).
-export([m/0]).
m()->S=io:get_chars('',453),S<" "orelse(io:write(lists:sum(S)div$2-296)<io:nl())<m().

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

download

return to the top page