#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;
}
7-17 爬动的蠕虫
最新推荐文章于 2021-10-27 12:10:09 发布
384

被折叠的 条评论
为什么被折叠?



