| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135024 | 蔡胤泽 | 外围元素之和 | C++ | Wrong Answer | 1 MS | 272 KB | 402 | 2025-11-02 11:26:45 |
#include <bits/stdc++.h> using namespace std; int main(){ int a[11][11]; int m; int n; int b= 0; cin >> m >> n; for(int i =1;i <=m;i++) { for(int j =1;j <=n;j++) { cin >> a[i][j]; } } for(int i =1;i <=n;i++) { for(int j =1;j <=n;j++) { if(i == 1 || i == m || j == 1 ||j == n) { b = b + a[i][j]; } } } cout << b; return 0; }
------Input------
1 10 9 0 4 4 7 7 9 4 6 4
------Answer-----
54
------Your output-----
-1937636666