#include <stdio.h>
#include <stdlib.h>
int main(){
int n,i,shu[10] [10];
scanf("%d",&n);
for(i=1;i<=n;i++)
{scanf("%d",&shu[i] [i]);}
return 0;
}
/*第一行输入一个整数 n,表示其后有 n 行 n 列(2<=n<=10)。
然后是 n 行,每行有 n 个整数,整数范围为(-100,100),相互之间用空格分隔。
Output Description
输出两行。第一行为每行的和,每个数据占 5 位。
第二行为每列的和,每个数据占 5 位。
Sample Input
5
8 3 9 0 10
3 5 17 1 1
2 8 6 23 1
15 7 3 2 9
6 14 2 6 0
Sample Output
30 27 40 36 28
34 37 37 32 21*/
/*输入一个 n*n 的矩阵,求出每行的和与每列的和。
Input Description
第一行输入一个整数 n,表示其后有 n 行 n 列(2<=n<=10)。
然后是 n 行,每行有 n 个整数,整数范围为(-100,100),相互之间用空格分隔。
Output Description
输出两行。第一行为每行的和,每个数据占 5 位。
第二行为每列的和,每个数据占 5 位。
Sample Input
5
8 3 9 0 10
3 5 17 1 1
2 8 6 23 1
15 7 3 2 9
6 14 2 6 0
Sample Output
30 27 40 36 28
34 37 37 32 21*/