結果
| 問題 | No.23 技の選択 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-12-12 15:04:09 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 263 bytes | 
| コンパイル時間 | 1,659 ms | 
| コンパイル使用メモリ | 157,132 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-12-14 05:03:59 | 
| 合計ジャッジ時間 | 2,941 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 17 WA * 16 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int H, A, D;
  cin >> H >> A >> D;
  
  double ans = 1e9;
  for (int i = 0; i * A <= H; i++) {
    ans = min(ans, i + 1.5 * ((H - i * A + D - 1) / D));
  }
  printf("%.10f\n", ans);
  return 0;
}
            
            
            
        