結果

問題 No.2270 T0空間
ユーザー えいるえいる
提出日時 2023-04-14 22:01:42
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 373 bytes
コンパイル時間 1,617 ms
コンパイル使用メモリ 165,468 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-18 19:26:40
合計ジャッジ時間 9,436 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 2 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 2 ms
5,376 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 2 ms
5,376 KB
testcase_11 WA -
testcase_12 AC 57 ms
5,376 KB
testcase_13 AC 243 ms
5,376 KB
testcase_14 WA -
testcase_15 AC 242 ms
5,376 KB
testcase_16 AC 484 ms
5,376 KB
testcase_17 WA -
testcase_18 AC 950 ms
5,376 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 854 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0