219 octets, difficile à optimiser là \o/
This commit is contained in:
		
							parent
							
								
									df467a8133
								
							
						
					
					
						commit
						147b155930
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -1,3 +1,3 @@
 | 
				
			||||||
import Data.List
 | 
					import Data.List
 | 
				
			||||||
main = do interact $ (unlines . map unwords . transpose . map (pad ' ') . transpose . pad "" . map words . lines)
 | 
					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
 | 
					       where pad v m = map (\e -> e ++ replicate ((maximum $ map length m)- length e) v) m
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue