题解
2024-10-20 18:51:04
发布于:广东
0阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int a[110][110],b[110][110];
int n,m;
cin>>n>>m;
for(int i = 1;i<=n;i++){
for(int j = 1;j<=m;j++){
cin>>a[i][j];
}
}
for(int i = 1;i<=n;i++){
for(int j = 1;j<=m;j++){
cin>>b[i][j];
}
}
for(int i = 1;i<=n;i++){
for(int j = 1;j<=m;j++){
cout<<a[i][j]+b[i][j]<<" ";
}
cout<<endl;
}
return 0;
}
这里空空如也
有帮助,赞一个