#include<iostream>
using namespace std;
int main()
{
int height,v,rest;
while(1)
{
cin>>height>>v>>rest;
if(height==0)
break;
if(height<=v)
cout<<1<<endl;
else
{
int sum=1;
while(sum*(v-rest)<height-v)
sum++;
cout<<sum*2+1<<endl;
}
}
}
水题
杭电1049题解
最新推荐文章于 2019-10-18 20:50:06 发布