mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
8 lines
187 B
C++
8 lines
187 B
C++
|
#include<stdio.h>
|
||
|
int main(){
|
||
|
int n,u,d,t;
|
||
|
while(scanf("%d%d%d",&n,&u,&d)!=-1&&n)
|
||
|
printf("%d\n",(n-u)%(u-d)?(2*((n-u)/(u-d)+1)+1):(2*((n-u)/(u-d))+1));
|
||
|
return 0;
|
||
|
}
|