IQ Test by monqy

m@main=do{a<-g;g>>=putStrLn.f.zipWith(++)a;m}
g=fmap words getLine
f(x:y)=show(fst$dropWhile((/=x).snd)(zip[1..]y)!!0)++' ':x

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

download

return to the top page