### 1034: 稀疏数组

[状态] [提交] [命题人:]

#### 样例输入 Copy

10 10
0 3 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
1 2 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 5 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 6 0 0

#### 样例输出 Copy

10 10 5
0 1 3
3 0 1
3 1 2
5 6 5
9 7 6