| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 127551 | 周辰彦 | 外围元素之和 | C++ | Wrong Answer | 0 MS | 256 KB | 413 | 2025-07-28 15:12:55 |
#include<bits/stdc++.h> using namespace std; int main() { int a[11][11],n,m,s=0; for(int i=1;i<=n;i++) for(int j=1;j<=m;j++) cin>>a[i][j]; for(int i=1;i<=n;i++) for(int j=1;j<=m;j++) { if(i==1||i==n) s+=a[i][j]; else if(j==1||j==m) s+=a[i][j]; } for(int i=1;i<=n;i++) { for(int j=1;j<=m;j++) cout<<a[i][j]<<" "; cout<<endl; } return 0; }
------Input------
1 10 9 0 4 4 7 7 9 4 6 4
------Answer-----
54
------Your output-----