結果
| 問題 | No.23 技の選択 | 
| コンテスト | |
| ユーザー |  ふーらくたる | 
| 提出日時 | 2016-06-27 11:12:06 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 303 bytes | 
| コンパイル時間 | 449 ms | 
| コンパイル使用メモリ | 55,948 KB | 
| 実行使用メモリ | 9,892 KB | 
| 最終ジャッジ日時 | 2024-10-11 22:22:23 | 
| 合計ジャッジ時間 | 7,132 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 3 TLE * 1 -- * 29 | 
ソースコード
#include <iostream>
using namespace std;
int H, A, D;
double E(int x) {
    if (x >= H) return 0.0;
    double res;
    res = min(E(x + A) + 1.0, E(x + D) + 3.0 / 2.0);
    return res;
}
void Solve() {
    cout << E(0) << endl;
}
int main() {
    cin >> H >> A >> D;
    Solve();
    return 0;
}
            
            
            
        