Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
26188 | C++|付浩泽 | 矩阵加法 | C++ | 运行超时 | 1000 MS | 260 KB | 391 | 2023-08-30 16:09:13 |
#include<iostream> using namespace std; int a[105][105],b[105][105],c[105][105]; int main(){ int n,m; cin>>n>>m; for(int i=0;i<n;i++){ for(int j=0;i<m;j++){ cin>>a[i][j]; } } for(int i=0;i<n;i++){ for(int j=0;i<m;j++){ cin>>b[i][j]; } } for(int i=0;i<n;i++){ for(int j=0;i<m;j++){ cout<<a[i][j]+b[i][j]<<" "; } cout<<endl; } return 0; }