Unix Is命令 Unix ls

题意翻译

输入正整数$n$ 以及$n$ 个文件名,排序后按列优先的方式左对齐输出。假设最长文件名有$M$ 字符,则最右边有$M$ 字符,其他列都是$M+2$ 字符。

题目描述

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=6&page=show_problem&problem=341 [PDF](https://uva.onlinejudge.org/external/4/p400.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA400/680cbafc296b2548dafcf7654cd4f9b2a8b61149.png)

输入输出格式

输入格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA400/ca88eabc5a31ae17e3a421ed1148c554f807ccd2.png)

输出格式


![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA400/1cf57bfedfe6e58a12f00c8b4d25eb0c73cd19b0.png)

输入输出样例

输入样例 #1

10
tiny
2short4me
very_long_file_name
shorter
size-1
size2
size3
much_longer_name
12345678.123
mid_size_name
12
Weaser
Alfalfa
Stimey
Buckwheat
Porky
Joe
Darla
Cotton
Butch
Froggy
Mrs_Crabapple
P.D.
19
Mr._French
Jody
Buffy
Sissy
Keith
Danny
Lori
Chris
Shirley
Marsha
Jan
Cindy
Carol
Mike
Greg
Peter
Bobby
Alice
Ruben

输出样例 #1

------------------------------------------------------------
12345678.123         size-1
2short4me            size2
mid_size_name        size3
much_longer_name     tiny
shorter              very_long_file_name
------------------------------------------------------------
Alfalfa        Cotton         Joe            Porky
Buckwheat      Darla          Mrs_Crabapple  Stimey
Butch          Froggy         P.D.           Weaser
------------------------------------------------------------
Alice       Chris       Jan         Marsha      Ruben
Bobby       Cindy       Jody        Mike        Shirley
Buffy       Danny       Keith       Mr._French  Sissy
Carol       Greg        Lori        Peter