Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
8080 | D班-罗炜翰 | 01矩阵 | C++ | 解答错误 | 0 | 1 MS | 260 KB | 442 | 2025-03-23 19:53:59 |
#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 = 0;i<a;i++) { for(int j = 0;j<b;j++) { cin>>n[i][j]; } } for(int i = 0;i<a;i++) { for(int j = 0;j<b;j++) { t.x = 0; if(n[i][j]!=0&&n[i][j]!=1) { t.x = 1; break; } } } if(t.x == 1) { cout<<"No"; } else { cout<<"Yes"; } }