結果

問題 No.519 アイドルユニット
ユーザー letrangerjpletrangerjp
提出日時 2017-06-02 18:50:55
言語 Ruby
(3.2.2)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 128 bytes
コンパイル時間 354 ms
コンパイル使用メモリ 11,924 KB
実行使用メモリ 148,080 KB
最終ジャッジ日時 2023-10-21 20:49:53
合計ジャッジ時間 12,919 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 TLE -
testcase_02 AC 406 ms
49,604 KB
testcase_03 AC 117 ms
18,632 KB
testcase_04 AC 80 ms
16,092 KB
testcase_05 AC 82 ms
16,092 KB
testcase_06 AC 80 ms
16,092 KB
testcase_07 AC 85 ms
16,092 KB
testcase_08 AC 85 ms
16,096 KB
testcase_09 AC 89 ms
16,352 KB
testcase_10 AC 101 ms
17,108 KB
testcase_11 AC 124 ms
18,632 KB
testcase_12 AC 77 ms
16,092 KB
testcase_13 AC 121 ms
18,632 KB
testcase_14 AC 123 ms
18,632 KB
testcase_15 AC 118 ms
18,632 KB
testcase_16 AC 120 ms
18,632 KB
testcase_17 AC 123 ms
18,632 KB
testcase_18 AC 132 ms
18,632 KB
testcase_19 AC 125 ms
18,632 KB
testcase_20 AC 128 ms
18,632 KB
testcase_21 AC 124 ms
18,632 KB
testcase_22 AC 117 ms
18,632 KB
testcase_23 AC 116 ms
18,632 KB
testcase_24 AC 191 ms
24,872 KB
testcase_25 AC 209 ms
24,872 KB
testcase_26 AC 208 ms
24,872 KB
testcase_27 AC 210 ms
24,872 KB
testcase_28 AC 206 ms
24,872 KB
testcase_29 TLE -
testcase_30 TLE -
testcase_31 TLE -
testcase_32 TLE -
testcase_33 AC 79 ms
16,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N,*T=$<.map{|s|s.split.map &:to_i}
g=->u{$*[u]||=(0..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