5506: 暑期营第八天 求差分矩阵

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

Description

Input

Output

共n 行,每行m个差数,表示所有操作进行完毕后的是终矩阵。

Sample Input Copy

3 4 3
1 2 2 1
3 2 2 1
1 1 1 1
1 1 2 2 1
1 3 2 3 2
3 1 3 4 1

Sample Output Copy

2 3 4 1
4 3 4 1
2 2 2 2

HINT