結果
| 問題 | 
                            No.2270 T0空間
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2023-07-23 22:10:25 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 1,722 bytes | 
| コンパイル時間 | 931 ms | 
| コンパイル使用メモリ | 111,880 KB | 
| 最終ジャッジ日時 | 2025-02-15 18:42:09 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 WA * 11 | 
ソースコード
/*
WA
*/
#include<iostream>
#include<set>
#include<algorithm>
#include<vector>
#include<string>
#include<set>
#include<map>
#include<numeric>
#include<queue>
#include<cmath>
#include<random>
#include<bitset>
//#include<fstream>
using namespace std;
typedef long long ll;
const ll INF=1LL<<60;
typedef pair<ll,ll> P;
typedef pair<int,P> PP;
const ll MOD=998244353;
int main(){
    int N,M;
    cin>>N;
    cin>>M;
    vector<string> s(M);
    vector<ll> S(M);
    vector<bitset<17>> bS(M); 
    for(int i=0;i<M;i++){
        cin>>s[i];
        ll num=0;
        for(char c:s[i]){
            num*=2;
            num+=(int)(c-'0');
        }
        S[i]=num;
        bS[i]=num;
    }
    for(int n0=0;n0<N;n0++){
        for(int n1=n0+1;n1<N;n1++){
            //if(n0==n1) continue;
            
            bool flag=false;
            for(auto& v:bS){
                //Sのなかでn0,n1番目で異なるものが存在
                if( bS[n0] != bS[n1] ){
                
                    flag=true;
                }
            }
            /*
            for(ll v:S){
                //Sのなかでn0,n1番目で異なるものが存在
                if( ((v>>n0)&1) != ((v>>n1)&1) ){
                
                    flag=true;
                }
            }
            */
            
           /*
            for(string& v:s){
                //Sのなかでn0,n1番目で異なるものが存在
                if( v[n0] != v[n1]){
                
                    flag=true;
                }
            }
            */
            if(!flag){
                cout<<"No"<<endl;
                return 0;
            }
        }
    }
     cout<<"Yes"<<endl;
    return 0;
}