結果

問題 No.9 モンスターのレベル上げ
ユーザー letrangerjpletrangerjp
提出日時 2017-05-15 20:53:11
言語 Ruby
(3.3.0)
結果
AC  
実行時間 4,305 ms / 5,000 ms
コード長 169 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 11,372 KB
実行使用メモリ 73,104 KB
最終ジャッジ日時 2023-09-06 05:26:50
合計ジャッジ時間 39,470 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
15,408 KB
testcase_01 AC 85 ms
15,044 KB
testcase_02 AC 4,061 ms
15,836 KB
testcase_03 AC 3,066 ms
15,860 KB
testcase_04 AC 1,611 ms
15,644 KB
testcase_05 AC 1,065 ms
15,832 KB
testcase_06 AC 410 ms
15,720 KB
testcase_07 AC 88 ms
15,420 KB
testcase_08 AC 530 ms
15,620 KB
testcase_09 AC 3,904 ms
15,744 KB
testcase_10 AC 86 ms
15,276 KB
testcase_11 AC 3,160 ms
16,168 KB
testcase_12 AC 3,971 ms
15,760 KB
testcase_13 AC 2,581 ms
73,104 KB
testcase_14 AC 4,305 ms
15,944 KB
testcase_15 AC 3,550 ms
15,656 KB
testcase_16 AC 133 ms
15,660 KB
testcase_17 AC 2,217 ms
15,876 KB
testcase_18 AC 1,850 ms
15,556 KB
testcase_19 AC 115 ms
15,604 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

M=2000;eval"N,*C="+`dd`.split*?,;p (b=C.pop N).map{a=C.sort.map{|v|v*M};b.rotate!.map{|l|m=a.shift+l/2*M+1;a.insert a.bsearch_index{|v|v>m}||-1,m};a.map{|v|v%M}.max}.min
0