minke #4701(2007/12/09 09:17 GMT) [ Haskell ] Rating8/8=1.00
どうでしょう
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
s = ["A B C D E", "| | |-| |", "|-| | |-|", "| |-| |-|", "|-| |-| |", "|-| | | |"] repl (x:' ':xs) ('|':y:ys) = let z:zs = repl xs ys in case y of '-' -> z:' ':x:zs _ -> x:' ':z:zs repl xs _ = xs main = putStrLn $ (unlines s) ++ foldl1 repl s
Rating8/8=1.00-0+
[ reply ]
minke
#4701()
[
Haskell
]
Rating8/8=1.00
どうでしょう
Rating8/8=1.00-0+
[ reply ]