3189: 比赛-二维数组每行排序

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

n 行 m 列矩阵,每行单独升序排序。

Input

第一行 n m,后续 n 行每行 m 个数

Output

排序后矩阵

Sample Input Copy

2 3
3 1 2
5 4 6

Sample Output Copy

1 2 3
4 5 6