#include using namespace std; double dp[10001]; int main() { int H, A, D; cin>> H>> A>> D; dp[0]=0; for(int h=1; h<=H; h++){ dp[h]= min( dp[max(0, h-A)]+1, // 通常攻撃 dp[max(0, h-D)]+1.5// 必殺技 ); } printf("%.10f\n", dp[H]); return 0; }