Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
77206 sh25_shenpy 九宫格 C++ 解答错误 0 MS 248 KB 644 2025-12-21 16:11:25

Tests(1/2):


#include<bits/stdc++.h> using namespace std; int dp[3][3]; int main(){ int x=0,m=0,z=0,u=0; for(int i=0;i<3;++i){ for(int h=0;h<3;++h){ cin>>dp[i][h]; x+=dp[i][h]; } if(x!=15){ cout<<0; return 0;} } for(int y=0;y<3;++y){ for(int g=0;g<3;++g){ m+=dp[g][y]; } if(m!=15){ cout<<0; return 0; } } for(int p=0;p<3;++p){ z+=dp[p][p]; u+=dp[p][2-p]; } if(z!=15||u!=15){ cout<<0; return 0;} cout<<1; return 0;}


测评信息: