| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139597 | zlx | [在线测评解答教程] A+B Problem | C++ | Time Limit Exceeded | 1000 MS | 312 KB | 544 | 2025-12-08 16:24:55 |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int a[100][100] = {0}; for (int i = 0; i < n; i++) { for (int j = 0; j < n; i++) { cin >> a[i][j]; } } for (int i = 0; i < n; i++) { for (int j = 0; j < n; i++) { if (i == j) { a[i][j] += 10; } } for(int i=0;i<n;i++){ for(int j=0;j<n;i++){ if(i+j==n-1){ a[i][j]+=10; } } } for(int i=0;i<n;i++){ for(int j=0;j<n;i++){ cout<<a[i][j]<<" "; } cout<<endl; } } return 0; }