import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double x = sc.nextDouble();
double sum = 2;
for(int i=1; ;i++){
if(sum >= x){
System.out.println(i);
break;
}
sum = sum+2*Math.pow(0.98,i);
}
}
}
P1423 小玉在游泳
最新推荐文章于 2023-12-20 16:07:36 发布