| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77170 | 只因你太美(Ikun 真爱粉) | 外围元素之和 | C++ | Wrong Answer | 1 MS | 272 KB | 425 | 2024-06-08 15:38:46 |
# include<iostream> using namespace std; int main(){ int n,m,i,j,mmm=0; int a[20][20]; 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];//6 if(j==1)mmm+=a[i][1];//3 if(i==n)mmm+=a[n][j];//6 if(j==m)mmm+=a[i][m];//9 } } 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