提交时间:2026-06-05 15:06:02

运行 ID: 90017

#include<bits/stdc++.h> using namespace std; int main() { int a,b; cin>>a>>b; int matthew[a][b],m[a][b]; for(int i=0;i<a;i++){ for(int j=0;j<b;j++){ cin>>matthew[i][j]; } } for(int i=0;i<a;i++){ for(int j=0;j<b;j++){ cin>>m[i][j]; } } for(int i=0;i<a;i++){ for(int j=0;j<b;j++){ cout<<matthew[i][j]+m[i][j]<<" "; } cout<<endl; } return 0; }