結果

問題 No.9 モンスターのレベル上げ
ユーザー letrangerjpletrangerjp
提出日時 2017-05-15 19:16:52
言語 Ruby
(3.2.2)
結果
WA  
実行時間 -
コード長 179 bytes
コンパイル時間 532 ms
コンパイル使用メモリ 11,352 KB
実行使用メモリ 60,408 KB
最終ジャッジ日時 2023-10-14 13:22:26
合計ジャッジ時間 35,796 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,104 KB
testcase_01 AC 83 ms
15,004 KB
testcase_02 AC 3,618 ms
15,812 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 375 ms
15,416 KB
testcase_07 AC 89 ms
15,180 KB
testcase_08 AC 478 ms
15,496 KB
testcase_09 AC 3,520 ms
15,712 KB
testcase_10 AC 83 ms
15,148 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 2,241 ms
60,408 KB
testcase_14 AC 3,526 ms
15,680 KB
testcase_15 AC 3,186 ms
15,832 KB
testcase_16 WA -
testcase_17 AC 1,994 ms
15,468 KB
testcase_18 AC 1,665 ms
15,496 KB
testcase_19 AC 113 ms
15,516 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,*b=`dd`.split.map &:to_i;_=b.pop(n).sort.map{|v|v*M=2000};p (1..n).map{a=_.dup;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