#include<stdio.h>
void main(){
float worm=1; //虫子的长度
float depth,cilmb,gilde; //井深 上爬的距离 下落的距离
int time=0; //所需要的时间
float sn=0;
printf("输入*********\n");
scanf("%f%f%f",&depth,&cilmb,&gilde);
depth=depth-worm; //井深-虫子的长度 实际要爬的距离;
while(1){
time++;
sn=sn+cilmb;
if(sn>=depth) break;
time++;
sn=sn-gilde;
}
printf("time=%d",time);
}