main=interact$f.lines f s=unlines[["01"!!mod(read[l!!n]+g(map(!!n)s)*g l)2|n<-[0..7]]|l<-s] g=sum.map(read.(:[]))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page