結果

問題 No.1400 すごろくで世界旅行
ユーザー yosswi414
提出日時 2019-12-30 02:59:08
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 1,821 ms
コンパイル使用メモリ 173,272 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-28 15:49:03
合計ジャッジ時間 3,006 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 17 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

// 入力が対称行列でないなら assert が失敗します

#include<bits/stdc++.h>
using namespace std;
signed main(){
  int v,d;
  cin>>v>>d;
  string str;
  vector<vector<bool>> G(v,vector<bool>(v,false));
  for(int i=0;i<v;++i){
    cin>>str;
    for(int j=0;j<v;++j)if(str[j]=='1')G[i][j]=true;
  }
  for(int i=0;i<v;++i)for(int j=i;j<v;++j)assert(G[i][j]==G[j][i]);
}
0