提交时间:2024-03-23 17:22:12

运行 ID: 139380

#include <bits/stdc++.h> using namespace std; int a[110][110],b[110][110],n,m; int main() { ios::sync_with_stdio(0); cin >> n >> m; for(int i = 0;i < n;i++) { for(int j = 0;j < n;j++) { cin >> a[i][j]; } } for(int i = 0;i < n;i++) { for(int j = 0;j < n;j++) { cin >> b[i][j]; } } for(int i = 0;i < n;i++) { for(int j = 0;j < n;j++) { cout << a[i][j] + b[i][j]; } } }