結果
問題 | No.90 品物の並び替え |
ユーザー | letrangerjp |
提出日時 | 2017-10-22 12:28:19 |
言語 | Ruby (3.2.2) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 135 bytes |
コンパイル時間 | 48 ms |
コンパイル使用メモリ | 11,464 KB |
実行使用メモリ | 18,896 KB |
最終ジャッジ日時 | 2023-08-13 17:33:03 |
合計ジャッジ時間 | 55,726 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 4,987 ms
18,816 KB |
testcase_01 | TLE | - |
testcase_02 | AC | 4,785 ms
18,832 KB |
testcase_03 | TLE | - |
testcase_04 | TLE | - |
testcase_05 | TLE | - |
testcase_06 | TLE | - |
testcase_07 | TLE | - |
testcase_08 | AC | 4,809 ms
18,584 KB |
testcase_09 | AC | 4,926 ms
18,896 KB |
コンパイルメッセージ
Syntax OK
ソースコード
gets t={} $<.map{|s|eval"t[0d%d%d]=%d"%s.split} p (R=*0..8).permutation.map{|a|R.map{|i|(i..8).map{|j|t[a[i]*10+a[j]]||0}.sum}.sum}.max