Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
363347 徐梓豪 【C4-9】方阵对角线 C++ 运行出错 50 4 MS 240 KB 232 2025-11-23 16:59:57

Tests(1/2):


#include<bits/stdc++.h> using namespace std; int a[15][15],n,s; int main(){ cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ cin>>a[i][j]; if(i==j) cout<<a[i][j]<<endl; } } return 0; }


测评信息: