結果
問題 | No.9 モンスターのレベル上げ |
ユーザー |
|
提出日時 | 2017-05-16 18:42:46 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 3,455 ms / 5,000 ms |
コード長 | 151 bytes |
コンパイル時間 | 45 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 13,440 KB |
最終ジャッジ日時 | 2024-06-24 00:09:28 |
合計ジャッジ時間 | 34,099 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
外部呼び出し有り |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
コンパイルメッセージ
Main.rb:1: warning: ambiguous first argument; put parentheses or a space even after `-' operator Syntax OK
ソースコード
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