#include<cstdio>
#include<cstring>
#include<string>
#include<cmath>
#include<vector>
#include<algorithm>
#include<iostream>
#include<time.h>
using namespace std;
int main()
{
int height;
int climb, down;
while (cin >> height >> climb >> down,height||climb||down)
{
if (height < climb)
{
cout << 1 << endl;
}
else
{
int Count = (height-climb) / (climb - down);
if ((height - climb) % (climb - down) != 0)
{
Count++;
}
Count *= 2;
Count++;
cout << Count << endl;
}
}
return 0;
}
HDU 1049(贪心)
最新推荐文章于 2021-05-22 20:38:30 发布