結果

問題 No.1166 NADA DNA
ユーザー yuruhiyayuruhiya
提出日時 2021-09-25 19:16:09
言語 cLay
(20240104-1)
結果
AC  
実行時間 98 ms / 3,000 ms
コード長 164 bytes
コンパイル時間 2,907 ms
コンパイル使用メモリ 174,732 KB
実行使用メモリ 63,972 KB
最終ジャッジ日時 2023-09-19 00:50:24
合計ジャッジ時間 6,512 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
55,628 KB
testcase_01 AC 30 ms
54,764 KB
testcase_02 AC 30 ms
54,992 KB
testcase_03 AC 45 ms
56,100 KB
testcase_04 AC 95 ms
63,844 KB
testcase_05 AC 95 ms
63,836 KB
testcase_06 AC 97 ms
63,876 KB
testcase_07 AC 98 ms
63,832 KB
testcase_08 AC 97 ms
63,968 KB
testcase_09 AC 97 ms
63,904 KB
testcase_10 AC 97 ms
63,972 KB
testcase_11 AC 97 ms
63,732 KB
testcase_12 AC 97 ms
63,768 KB
testcase_13 AC 95 ms
63,764 KB
testcase_14 AC 97 ms
63,960 KB
testcase_15 AC 97 ms
63,960 KB
testcase_16 AC 97 ms
63,924 KB
testcase_17 AC 96 ms
63,732 KB
testcase_18 AC 98 ms
63,928 KB
testcase_19 AC 95 ms
63,764 KB
testcase_20 AC 30 ms
54,788 KB
testcase_21 AC 30 ms
54,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

int@n,@l,a[1d6],b[],c[],z;string s[];wgraph<int>g;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