1377: 计算矩阵内部数字之和

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

Description

输入整数M,N,接着输入一个M*N大小的矩阵,计算矩阵内部数字之和

Input

M*N的矩阵

Output

矩阵内部数字之和

Sample Input Copy

3 3
3 4 1
3 7 1
2 0 1

Sample Output Copy

7