Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
75004 sh25_wangtaojie 计算矩阵边缘元素之和 C++ 通过 0 MS 248 KB 487 2025-12-05 14:56:45

Tests(1/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 k=2;k<b;k=k+1){ cin>>z; } cin>>z; count=count+z; } for(int i=0;i<b;i=i+1){ cin>>z; count=count+z; } cout<<count; return 0; }


测评信息: