#include<iostream>
using namespace std;

 


int main()
{
    int n,u,d;
    int min,dis;
    while(cin>>n>>u>>d && !(n==0&&u==0&&d==0))
    {
/*        min=n*2/(u-d);
        if(min*(u-d)/2+2*d-u>=n)
            cout<<int(min-3+0.9999)<<endl;
        else
            cout<<int(min-1+0.9999)<<endl;   */

        dis=0;
        min=0;
        dis+=u;
        min++;
        while(dis<n)
        {
            dis=dis-d+u;
            min+=2;
        }
        cout<<min<<endl;

    }
    return 0;
}

 

相关文章:

  • 2021-09-10
  • 2021-06-15
  • 2021-12-29
猜你喜欢
  • 2021-10-16
  • 2022-12-23
  • 2021-04-02
  • 2021-08-28
  • 2021-12-15
  • 2021-11-18
  • 2021-12-15
相关资源
相似解决方案