| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 90017 | sh25_guwz | 矩阵加法 | C++ | Accepted | 0 MS | 256 KB | 400 | 2026-06-05 15:06:02 |
#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; }