結果

問題 No.1166 NADA DNA
ユーザー yuruhiyayuruhiya
提出日時 2020-08-14 13:04:12
言語 cLay
(20240104-1)
結果
AC  
実行時間 98 ms / 3,000 ms
コード長 185 bytes
コンパイル時間 2,951 ms
コンパイル使用メモリ 174,336 KB
実行使用メモリ 46,480 KB
最終ジャッジ日時 2023-09-19 00:59:45
合計ジャッジ時間 5,687 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
11,548 KB
testcase_01 AC 3 ms
11,520 KB
testcase_02 AC 4 ms
11,660 KB
testcase_03 AC 25 ms
22,876 KB
testcase_04 AC 96 ms
46,424 KB
testcase_05 AC 96 ms
46,348 KB
testcase_06 AC 96 ms
46,404 KB
testcase_07 AC 96 ms
46,348 KB
testcase_08 AC 96 ms
46,348 KB
testcase_09 AC 97 ms
46,320 KB
testcase_10 AC 98 ms
46,368 KB
testcase_11 AC 98 ms
46,384 KB
testcase_12 AC 97 ms
46,416 KB
testcase_13 AC 97 ms
46,348 KB
testcase_14 AC 98 ms
46,400 KB
testcase_15 AC 97 ms
46,344 KB
testcase_16 AC 97 ms
46,388 KB
testcase_17 AC 97 ms
46,380 KB
testcase_18 AC 96 ms
46,384 KB
testcase_19 AC 97 ms
46,480 KB
testcase_20 AC 3 ms
11,540 KB
testcase_21 AC 3 ms
11,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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