結果

問題 No.1166 NADA DNA
ユーザー yuruhiyayuruhiya
提出日時 2020-08-14 13:16:26
言語 cLay
(20240104-1)
結果
AC  
実行時間 54 ms / 3,000 ms
コード長 181 bytes
コンパイル時間 2,976 ms
コンパイル使用メモリ 175,936 KB
実行使用メモリ 32,204 KB
最終ジャッジ日時 2023-09-19 01:00:25
合計ジャッジ時間 4,901 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
26,016 KB
testcase_01 AC 18 ms
25,832 KB
testcase_02 AC 19 ms
25,992 KB
testcase_03 AC 26 ms
30,948 KB
testcase_04 AC 54 ms
32,108 KB
testcase_05 AC 54 ms
32,204 KB
testcase_06 AC 54 ms
32,004 KB
testcase_07 AC 54 ms
31,988 KB
testcase_08 AC 54 ms
31,980 KB
testcase_09 AC 54 ms
32,052 KB
testcase_10 AC 54 ms
31,996 KB
testcase_11 AC 54 ms
31,992 KB
testcase_12 AC 54 ms
32,068 KB
testcase_13 AC 54 ms
32,032 KB
testcase_14 AC 54 ms
32,004 KB
testcase_15 AC 54 ms
32,008 KB
testcase_16 AC 54 ms
31,988 KB
testcase_17 AC 53 ms
31,992 KB
testcase_18 AC 54 ms
32,112 KB
testcase_19 AC 54 ms
32,024 KB
testcase_20 AC 19 ms
25,832 KB
testcase_21 AC 19 ms
25,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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