結果
| 問題 |
No.2270 T0空間
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-14 22:30:50 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 411 ms / 2,000 ms |
| コード長 | 585 bytes |
| コンパイル時間 | 1,724 ms |
| コンパイル使用メモリ | 171,540 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-10 13:26:01 |
| 合計ジャッジ時間 | 5,579 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int n, m;
cin >> n >> m;
vector<bitset<256>> B(256);
bitset<256> b;
for(int i = 0; i < m; i++){
cin >> b;
for(int j = 0; j < n; j++){
if(b[j] == 0) B[j] |= b;
}
}
for(int i = 0; i < n; i++){
for(int j = i + 1; j < n; j++){
if(!(B[i][j] | B[j][i])){
cout << "No" << '\n';
return 0;
}
}
}
cout << "Yes" << '\n';
}