結果
問題 | No.2270 T0空間 |
ユーザー |
|
提出日時 | 2023-04-14 22:37:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 499 ms / 2,000 ms |
コード長 | 485 bytes |
コンパイル時間 | 1,647 ms |
コンパイル使用メモリ | 172,368 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-10-10 13:35:19 |
合計ジャッジ時間 | 6,609 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll=long long; int main(){ ll N,M; cin>>N>>M; vector<bitset<256>> A(M); for(int i=0;i<M;i++) cin>>A[i]; bool ye=true; for(int i=0;i<N;i++){ bitset<256> a; for(int j=0;j<M;j++){ if(A[j].test(i)){ a|=A[j].flip(); } else{ a|=A[j]; } } a[i]=true; for(int i=N;i<256;i++) a[i]=true; if(!a.all()) ye=false; } if(ye) cout<<"Yes"<<endl; else cout<<"No"<<endl; }