第四个点超时了,求助
#include <bits/stdc++.h> using namespace std; int main(){ int v=7,s,x,c=0;cin>>s>>x;//v是鱼的速度,s是A点与探测器的距离,x是探测器的探测长度,c是鱼的总路程 while (c+v<s-x){ c+=v;v*=.98; }//如果鱼没有进入探测器范围,正常游,速度*98% if (v*.98<2*x){cout<<"y";}else{cout<<"n";} return 0; }