結果
問題 |
No.2270 T0空間
|
ユーザー |
|
提出日時 | 2023-04-14 22:30:14 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 421 ms / 2,000 ms |
コード長 | 589 bytes |
コンパイル時間 | 1,977 ms |
コンパイル使用メモリ | 171,368 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-10 13:25:33 |
合計ジャッジ時間 | 5,880 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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); for(int i = 0; i < m; i++){ bitset<256> b; 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'; }