IQ Test by notogawa

m@main=do a:x<-g;b:y<-g;putStrLn$[n|(n,s,t)<-zip3['1'..]x y,s==a,t==b]++' ':a++b;m
g=fmap words getLine

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

download

return to the top page