Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
8079 D班-罗炜翰 01矩阵 C++ 解答错误 0 1 MS 260 KB 414 2025-03-23 19:51:28

Tests(0/3):


#include<bits/stdc++.h> using namespace std; struct temps{ int x; }t; int main() { int a,b; cin>>a>>b; int n[a][b]; for(int i;i<a;i++) { for(int j;j<b;j++) { cin>>n[i][j]; } } for(int i;i<a;i++) { for(int j;j<b;j++) { t.x = 0; if(n[i][j]!=0&&n[i][j]!=1) { t.x = 1; } } } if(t.x == 1) { cout<<"No"; } else { cout<<"Yes"; } }


测评信息: