yotaro #5692(2008/02/05 17:26 GMT) [ Haskell ] Rating0/0=0.00
愚直な実装です
1 2 3 4 5 6
import System.Environment replace s (f,t) = map (\x->if x == f then t else x) s tr s fro = last . scanl replace s . zip fro main = do fro:to:s:xs <- getArgs putStrLn $ tr s fro to
Rating0/0=0.00-0+
[ reply ]
yotaro #5692() [ Haskell ] Rating0/0=0.00
愚直な実装です
Rating0/0=0.00-0+
[ reply ]