题解
2025-02-16 17:13:03
发布于:江苏
0阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
int c[a][b],d[a][b];
for(int e=0;e<a;e++){
for(int f=0;f<b;f++){
cin>>c[e][f];
}
}
for(int e=0;e<a;e++){
for(int f=0;f<b;f++){
cin>>d[e][f];
}
}
for(int e=0;e<a;e++){
for(int f=0;f<b;f++){
cout<<c[e][f]+d[e][f]<<' ';
}
cout<<endl;
}
return 0;
}
这里空空如也
有帮助,赞一个