Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
139383 邹文浠白云六中 矩阵加法 C++ 解答错误 0 0 MS 268 KB 436 2024-03-23 17:22:23

Tests(0/4):


#include <bits/stdc++.h> using namespace std; int a[110][110],b[110][110],n,m; int main() { ios::sync_with_stdio(0); cin >> n >> m; for(int i = 0;i < n;i++) { for(int j = 0;j < n;j++) { cin >> a[i][j]; } } for(int i = 0;i < n;i++) { for(int j = 0;j < n;j++) { cin >> b[i][j]; } } for(int i = 0;i < n;i++) { for(int j = 0;j < n;j++) { cout << a[i][j] + b[i][j]; } } }


测评信息: