結果
問題 | No.23 技の選択 |
ユーザー | mai |
提出日時 | 2017-03-17 08:23:37 |
言語 | Ruby (3.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 224 bytes |
コンパイル時間 | 254 ms |
コンパイル使用メモリ | 11,456 KB |
実行使用メモリ | 20,024 KB |
最終ジャッジ日時 | 2023-09-17 19:05:58 |
合計ジャッジ時間 | 7,538 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 84 ms
15,336 KB |
testcase_01 | AC | 81 ms
15,292 KB |
testcase_02 | AC | 82 ms
15,136 KB |
testcase_03 | TLE | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
testcase_32 | -- | - |
コンパイルメッセージ
Syntax OK
ソースコード
@h,@a,@d=gets.split.map{|e|e.to_i} @dp = Array.new(10005,100000.0) def dfs(hp=0,c=0.0) i=[@h,hp].min @dp[i]=[@dp[i],c].min return if @h <= hp dfs(hp+@d,@dp[i]+1.5) dfs(hp+@a,@dp[i]+1.0) end dfs p @dp[@h].to_f