結果

問題 No.90 品物の並び替え
ユーザー yuruhiyayuruhiya
提出日時 2021-02-01 17:22:38
言語 Ruby
(3.3.0)
結果
AC  
実行時間 4,401 ms / 5,000 ms
コード長 123 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 11,256 KB
実行使用メモリ 18,644 KB
最終ジャッジ日時 2023-09-12 10:13:39
合計ジャッジ時間 47,901 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4,226 ms
18,300 KB
testcase_01 AC 4,287 ms
18,212 KB
testcase_02 AC 4,060 ms
18,432 KB
testcase_03 AC 4,343 ms
18,248 KB
testcase_04 AC 4,320 ms
18,324 KB
testcase_05 AC 4,308 ms
18,300 KB
testcase_06 AC 4,379 ms
18,460 KB
testcase_07 AC 4,401 ms
18,332 KB
testcase_08 AC 4,118 ms
18,280 KB
testcase_09 AC 4,191 ms
18,644 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

t={}
gets;$<.map{eval"t[0d%d%d]=%d"%_1.split}
p (R=*0..8).permutation.map{|a|R.sum{|i|(i..8).sum{t[a[i]*10+a[_1]]||0}}}.max
0