結果

問題 No.519 アイドルユニット
ユーザー letrangerjpletrangerjp
提出日時 2017-06-02 18:28:45
言語 Ruby
(3.2.2)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 129 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 148,028 KB
最終ジャッジ日時 2023-10-21 20:49:20
合計ジャッジ時間 13,823 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 TLE -
testcase_02 AC 439 ms
49,508 KB
testcase_03 AC 130 ms
18,536 KB
testcase_04 AC 85 ms
15,996 KB
testcase_05 AC 85 ms
15,996 KB
testcase_06 AC 86 ms
15,996 KB
testcase_07 AC 88 ms
15,996 KB
testcase_08 AC 89 ms
15,996 KB
testcase_09 AC 93 ms
16,252 KB
testcase_10 AC 104 ms
17,012 KB
testcase_11 AC 129 ms
18,536 KB
testcase_12 AC 89 ms
15,992 KB
testcase_13 AC 130 ms
18,536 KB
testcase_14 AC 129 ms
18,536 KB
testcase_15 AC 131 ms
18,536 KB
testcase_16 AC 130 ms
18,536 KB
testcase_17 AC 129 ms
18,536 KB
testcase_18 AC 129 ms
18,536 KB
testcase_19 AC 129 ms
18,536 KB
testcase_20 AC 131 ms
18,540 KB
testcase_21 AC 132 ms
18,536 KB
testcase_22 AC 129 ms
18,536 KB
testcase_23 AC 130 ms
18,536 KB
testcase_24 AC 208 ms
24,776 KB
testcase_25 AC 209 ms
24,776 KB
testcase_26 AC 210 ms
24,776 KB
testcase_27 AC 204 ms
24,776 KB
testcase_28 AC 206 ms
24,776 KB
testcase_29 TLE -
testcase_30 TLE -
testcase_31 TLE -
testcase_32 TLE -
testcase_33 AC 88 ms
15,992 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N,*T=$<.map{|s|s.split.map &:to_i}
g=->u{$*[u]||=(-1..a=/.$/=~"%b"%u).map{|b|u[b]<1?0:T[a][b]+g[1<<a|1<<b^u]}.max}
p g[2**N[0]-1]
0