Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
156582 汪明轩 外围元素之和 C++ Wrong Answer 1 MS 260 KB 290 2026-07-04 10:33:32

Tests(0/10):


Code:

#include<iostream> using namespace std; int a[12][12]; int main(){ int a[12][12],m,n,s; cin>>m>>n; for(int i=1;i<=m;i++){ for(int j=1;j<=n;j++){ cin>>a[i][j]; if(i==1||i==n||j==1||j==m){ s+=a[i][j]; } } } cout<<s; return 0; }


Run Info:

------Input------
1 10 9 0 4 4 7 7 9 4 6 4
------Answer-----
54
------Your output-----
4827078