4 条题解
- 
  -2
标题
思路
解题方法
复杂度
时间复杂度:
添加时间复杂度, 示例:
空间复杂度:
添加空间复杂度, 示例:
Code
{
#include<bits/stdc++.h> using namespace std; int a[6][6]; int main() for(int i=1;i<=5;i++) { for(int j=1;j<=5;j++) { cin>>a[i][j]; } } for(int i=1;i<=5;i++) { bool flag=true; for(int j=1;j<=5;j++) { if(a[i][j]==0) flag=false; } if(flag==true) { cout<<"Yes"; return 0; } flag=true; for(int j=1;j<=5;j++) { if(a[j][i]==0) flag=false; } if(flag==true) { cout<<"Yes"; return 0; } else if(i==1) { flag=true; for(int j=i;j<=5;j++) { if(a[j][j]==0) flag=false; } if(flag==true) { cout<<"Yes"; return 0; } } else if(i==5) { flag=true; for(int j=5;j>=1;j--) { if(a[j][j]==0) flag=false; } if(flag==true) { cout<<"Yes"; return 0; } } } cout<<"No"; return 0;}
 
信息
- ID
 - 46
 - 时间
 - 1000ms
 - 内存
 - 512MiB
 - 难度
 - 1
 - 标签
 - 递交数
 - 421
 - 已通过
 - 253
 - 上传者