#include <cstdio>
int main()
{
    int cnt,h,d,u;
    while(scanf("%d%d%d",&h,&d,&u)!=EOF)
    if (h!=0)
    {
        cnt=0;
        cnt+=(2*((h-d)/(d-u)));
        if ((h-d)%(d-u)!=0) 
        cnt+=2;
        cnt+=1;
        printf("%d\n",cnt);
    }
    return 0;
}

翻译:worm 虫子

相关文章:

  • 2022-02-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
猜你喜欢
  • 2022-02-25
  • 2022-12-23
  • 2021-08-01
  • 2021-08-25
  • 2021-12-10
  • 2021-10-23
相关资源
相似解决方案