| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77037 | 只因你太美(Ikun 真爱粉) | 外围元素之和 | C++ | Wrong Answer | 0 MS | 272 KB | 413 | 2024-06-08 09:48:04 |
# include<iostream> using namespace std; int main(){ int n,m,i,j,mmm=0; int a[30][30]; cin>>n>>m; for(i=1;i<=n;i++){ for(j=1;j<=m;j++){ cin>>a[i][j]; if(i==1)mmm+=a[1][j]; if(j==1)mmm+=a[i][1]; if(i==n)mmm+=a[n][j]; if(j==m)mmm+=a[i][m]; } } cout<<mmm-a[1][1]-a[n][1]-a[1][m]-a[n][m]; return 0; }
------Input------
1 10 9 0 4 4 7 7 9 4 6 4
------Answer-----
54
------Your output-----
95