結果

問題 No.90 品物の並び替え
ユーザー letrangerjpletrangerjp
提出日時 2017-10-22 12:09:37
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 141 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 18,944 KB
最終ジャッジ日時 2024-05-01 10:11:02
合計ジャッジ時間 1,792 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
12,416 KB
testcase_01 RE -
testcase_02 AC 74 ms
12,288 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 74 ms
12,160 KB
testcase_09 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

t=[0]*9*N=gets.hex
$<.map{|s|eval"t[%d%d]=%d"%s.split}
p (R=*0...N).permutation.map{|a|R.map{|i|(i...N).map{|j|t[a[i]*10+a[j]]}.sum}.sum}.max
0