結果
問題 |
No.2270 T0空間
|
ユーザー |
|
提出日時 | 2023-04-14 22:01:42 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 373 bytes |
コンパイル時間 | 1,543 ms |
コンパイル使用メモリ | 168,012 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-10 12:48:01 |
合計ジャッジ時間 | 9,312 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll=long long; int main(){ ll N,M; cin>>N>>M; vector<ll> A(N); for(int i=0;i<M;i++)for(int j=0;j<N;j++){ char zeon; cin>>zeon; if(zeon=='1') A[j]++; } bool ye=true; for(int i=0;i<N;i++)for(int j=i+1;j<N;j++){ if(A[i]==A[j]) ye=false; } if(ye) cout<<"Yes"<<endl; else cout<<"No"<<endl; }