結果

問題 No.1166 NADA DNA
ユーザー yuruhiyayuruhiya
提出日時 2020-10-08 20:10:53
言語 cLay
(20240104-1)
結果
AC  
実行時間 83 ms / 3,000 ms
コード長 178 bytes
コンパイル時間 2,809 ms
コンパイル使用メモリ 173,764 KB
実行使用メモリ 32,344 KB
最終ジャッジ日時 2023-09-19 01:32:26
合計ジャッジ時間 5,331 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
23,960 KB
testcase_01 AC 18 ms
24,060 KB
testcase_02 AC 18 ms
23,972 KB
testcase_03 AC 33 ms
29,184 KB
testcase_04 AC 82 ms
32,096 KB
testcase_05 AC 82 ms
32,184 KB
testcase_06 AC 82 ms
32,116 KB
testcase_07 AC 82 ms
32,116 KB
testcase_08 AC 83 ms
32,344 KB
testcase_09 AC 82 ms
32,112 KB
testcase_10 AC 82 ms
32,104 KB
testcase_11 AC 82 ms
32,100 KB
testcase_12 AC 82 ms
32,164 KB
testcase_13 AC 82 ms
32,100 KB
testcase_14 AC 81 ms
32,180 KB
testcase_15 AC 82 ms
32,312 KB
testcase_16 AC 82 ms
32,312 KB
testcase_17 AC 82 ms
32,104 KB
testcase_18 AC 82 ms
32,168 KB
testcase_19 AC 83 ms
32,184 KB
testcase_20 AC 18 ms
23,896 KB
testcase_21 AC 18 ms
23,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int a[1d6],b[1d6],c[1d6],z;string s[1d3];wgraph<int>g;{ll@n,@l;rd(s(n));rep(i,n)rep(j,n)c[z]+=s[i][0..l]!=s[j][0..],a[z]=i,b[z++]=j;g.setEdge(n,1d6,a,b,c);wt(g.MST_Prim_cost());}
0