#include <stdio.h>
int main()
{
int n,d,u,t=0,s=0;
scanf("%d %d %d",&n,&d,&u);
while(1)
{
t++;
s+=d;
if(s>=n)
break;
t++;
s-=u;
}
printf("%d",t);
return 0;
}
11-07
1万+
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交