Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
2888 | 邓程允 | 矩阵加法 | C++ | Presentation Error | 2 MS | 348 KB | 487 | 2024-03-09 16:25:56 |
# include<iostream> using namespace std; int main(){ int a,b,c[101][101],d[101][101]; cin>>a>>b; for(int i=0;i<a;i++){ for(int j=0;j<b;j++){ cin>>c[i][j]; } } for(int i=0;i<a;i++){ for(int j=0;j<b;j++){ cin>>d[i][j]; } } cout<<endl; for(int i=0;i<a;i++){ for(int j=0;j<b;j++){ cout<<c[i][j]+d[i][j]<<" "; } cout<<endl; } return 0; }