Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6851 邓小龙 两个数的最小距离II C++ Wrong Answer 0 MS 264 KB 423 2025-03-22 15:35:40

Tests(0/15):


Code:

#include<iostream> using namespace std; int main(){ int m,n,a[21][21],s=0; cin>>m>>n; for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ cin>>a[i][j]; } } //遍历矩阵 for(int i=0;i<m;i++){ for(int j=0;j<n;j++){ if(i==0||i==m-1||j==0||j==n-1){ s+=a[i][j]; } } } cout<<s<<endl; return 0; }


Run Info:

------Input------
815 -709065349 945173367 793167292 -727297898 961459714 -525333008 357981149 -338216299 -790533583 175147282 -401929630 -595452787 174419119 -661528496 558727304 -764073687 42336268 713919276 718589230 -362134115 -695301394 -989727546 -94274536 -758484291 966527063 373881347 701252276 886415446 81607364 408192422 713538653 -923309753 -224127040 823491298 -544895962 463208467 457572653 -143715549 627234529 590527846 595864830 19536503 -157698889 -93573607 407628058 -626627387 -632379383 -35164649
------Answer-----
389 747
------Your output-----
0