Count diamonds level 2 by uru

var b:char;a,i:word;begin
repeat
a:=0;repeat
read(b);inc(a,ord(b='*'))until'-'=b;for i:=1shr a to 3do if(a-8*i)mod 5=0then writeln((a-8*i)div 5)until 1=0end.

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

download

return top