結果

問題 No.9 モンスターのレベル上げ
ユーザー letrangerjpletrangerjp
提出日時 2017-05-16 18:42:46
言語 Ruby
(3.2.2)
結果
AC  
実行時間 3,368 ms / 5,000 ms
コード長 151 bytes
コンパイル時間 66 ms
コンパイル使用メモリ 11,404 KB
実行使用メモリ 15,816 KB
最終ジャッジ日時 2023-09-06 05:27:35
合計ジャッジ時間 33,233 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
外部呼び出し有り
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,200 KB
testcase_01 AC 81 ms
15,060 KB
testcase_02 AC 3,368 ms
15,784 KB
testcase_03 AC 2,596 ms
15,816 KB
testcase_04 AC 1,398 ms
15,524 KB
testcase_05 AC 947 ms
15,476 KB
testcase_06 AC 377 ms
15,536 KB
testcase_07 AC 89 ms
15,468 KB
testcase_08 AC 499 ms
15,700 KB
testcase_09 AC 3,233 ms
15,688 KB
testcase_10 AC 82 ms
15,148 KB
testcase_11 AC 3,205 ms
15,700 KB
testcase_12 AC 2,761 ms
15,688 KB
testcase_13 AC 3,099 ms
15,568 KB
testcase_14 AC 3,301 ms
15,700 KB
testcase_15 AC 2,956 ms
15,808 KB
testcase_16 AC 132 ms
15,540 KB
testcase_17 AC 1,918 ms
15,640 KB
testcase_18 AC 1,621 ms
15,652 KB
testcase_19 AC 113 ms
15,480 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

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