Run ID:83257

提交时间:2024-07-14 11:35:54

#include<bits/stdc++.h> using namespace std; int a[101][101],b[101][101],x,y; int main(){ cin>>x>>y; for(int i=0;i<x;i++){ for(int j=0;j<y;j++){ cin>>a[i][j]; } } for(int i=0;i<x;i++){ for(int j=0;j<y;j++){ cin>>b[i][j]; } } for(int i=0;i<x;i++){ for(int j=0;j<y;j++){ cout<<a[i][j]+b[i][j]<<' '; } cout<<"\n"; } return 0; }