| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 139755 | 韩立鹏 | 矩阵加法 | C++ | Accepted | 100 | 0 MS | 252 KB | 353 | 2024-03-25 13:23:20 |
#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; int a[n*m],b[n*m],c[m*n]; for(int i=1;i<=m*n;i++){ cin>>a[i]; } for(int i=1;i<=m*n;i++){ cin>>b[i]; } for(int i=1;i<=m*n;i++){ c[i]=a[i]+b[i]; } for(int i=1;i<=n*m;i++){ cout<<c[i]<<" "; if(i==m){ cout<<endl; } } return 0; }