219 octets, difficile à optimiser là \o/

master
Karchnu 8 years ago
parent df467a8133
commit 147b155930

@ -1,3 +1,3 @@
import Data.List
main = do interact $ (unlines . map unwords . transpose . map (pad ' ') . transpose . pad "" . map words . lines)
where pad v m = map (\e -> e ++ replicate ((maximum $ map length m)- length e) v) m
main = interact $ (unlines . map unwords . transpose . map (pad ' ') . transpose . pad "" . map words . lines)
where pad v m = map (\e -> e ++ replicate ((maximum $ map length m)- length e) v) m

Loading…
Cancel
Save