Run ID:2852

提交时间:2024-03-08 12:03:11

# include<iostream> using namespace std; int main(){ int a[101][101]={1}, result[101][101]={}, m, n, c; cin>>m>>n; for(int i = 0; i < m; i++)for(int j = 0; j < n; j++)cin>>a[i][j]; for(int i = 0; i < m; i++)for(int j = 0; j < n; j++){ cin>>c; result[i][j] = a[i][j]+c; } for(int i = 0; i < m; i++){ for(int j = 0; j < n; j++)cout<<result[i][j]<<" "; cout<<endl; } return 0; }