| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83257 | 石茂诤 | 矩阵加法 | C++ | Accepted | 3 MS | 352 KB | 385 | 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; }