Section2.3

#include<stdio.h>

int main()

{

int i,u,n,d,t=0;

while(scanf("%d%d%d",&n,&u,&d)!=EOF)

{

if(n==0&&u==0&&d==0)  break;

for(i=0;n-(u-d)*i>u;i++)

{

t=t+2;

}

t=t+1;

printf("%d\n",t);

t=0;

}

}

posted on 2011-09-30 23:07  csushin  阅读(80)  评论(0)    收藏  举报