| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 81762 | sh25_wangsj | 矩阵加法 | C++ | Accepted | 0 MS | 252 KB | 462 | 2026-01-09 15:07:40 |
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { int a,b,d,e; cin>>a>>b; d=a*b; int c,aa[666],bb[666],count=-1; for(int i=0;i<d;i++){ cin>>c; aa[i]=c; } for(int i=0;i<d;i++){ cin>>c; bb[i]=c; } for(int i=0;i<a;i++){ for(int j=0;j<b;j++){ e=aa[i*3+j]+bb[i*3+j]; cout<<e<<" "; } cout<<endl; } return 0; }