Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
73472 sh25_wangsj 计算矩阵边缘元素之和 C++ 解答错误 0 MS 248 KB 461 2025-11-09 21:24:42

Tests(0/1):


#include <iostream> using namespace std; int main() { int a,b,z,count=0; cin>>a>>b; for(int i=0;i<b;i=i+1){ cin>>z; count=count+z; } for(int j=2;j<a;j++){ cin>>z; count=count+z; for(int i=2;i<b;i=i+1){ count=count; } } for(int i=0;i<b;i=i+1){ cin>>z; count=count+z; } cout<<count; return 0; }


测评信息: