为什么结果是TLe? 代码好像没错 代码:
#include<bits/stdc++.h> using namespace std; int main() { double s1,s2=2;int ans=1; cin>>s1; while(s2<s1){ ans+=1; s2+=(98/100)*s2; } printf("%d\n",ans); return 0; //在c++运行没有结果 }
运行后好像是了死循环 为什么?