ISBN2 by murky-satyr

for(;$=readline(i=j=s=0);print($.replace('?',j))){for(n=$[14];c=$[++i+3];(c>'W'?c=10:c)>-1?s+=c*m:q=m)m=n?i%2||3:11-i;for(;(j*q+s)%(10+!n);)j++}

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

download

return to the top page