文章
43
粉丝
180
获赞
21
访问
196.2k
#include <bits/stdc++.h>
using namespace std;
const int N = 110;
int n, m, p, a[N][N];
int main() {
cin >> n >> m;
for (int i = 0; i < n; i ++ )
for (int j = 0; j < m; j ++ )
cin >> a[i][j];
for (int i = 0; i < n; i ++ )
{
for (int j = 0; j < m; j ++ )
{
cin >> p;
cout << a[i][j] + p << ' ';
}
cout << endl;
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发