結果
| 問題 | No.23 技の選択 | 
| コンテスト | |
| ユーザー |  kurenai3110 | 
| 提出日時 | 2016-12-06 18:39:08 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 376 bytes | 
| コンパイル時間 | 655 ms | 
| コンパイル使用メモリ | 69,812 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-28 17:14:02 | 
| 合計ジャッジ時間 | 1,467 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 33 | 
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <map>
#include <cmath>
using namespace std;
int main(){
	double h, a, d; cin >> h >> a >> d;
	double cntmax = ceil(h / a);
	
	double minE = cntmax;
	for (int i = 0; i < cntmax; i++){
		double tmpH = h - a*i;
		
		minE = min(minE, i+1.5*ceil(tmpH/d));
	}
	cout << minE << endl;
	return 0;
}
            
            
            
        