提交时间:2025-07-08 15:20:46
运行 ID: 329866
#include<iostream> using namespace std; int main(){ double x,a=2,s=0; int y=0; cin>>x; while(s<x){ y++; s+=a; a*=0.98; } cout<<y; return 0; }