int main(){ float s,v=2,x=0; int time=0; scanf("%f",&s); while (x<s){ time++; x+=v; v=v*0.98; } printf("%d",time); return 0; }
输入100卡死了