| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 90017 | sh25_guwz | 矩阵加法 | C++ | 通过 | 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; }