莫名其妙80分,求助。。。

P1426 小鱼会有危险吗

## $if$语句打错了$!!!$ ```cpp #include <iostream> using namespace std; int main() { int s,x,sta=0;double j=0.0000; cin>>s>>x; for(double i=1.0000;;i*=0.98) { if(j>=s-x&&j<=s+x) sta=1; if(x==0){cout<<"n"<<endl; return 0;} j+=7*i; if(sta&&j<=s+x) {cout<<"y"<<endl;return 0;} if(j>s+x){cout<<"n"<<endl; return 0;} } } ```
by OItby @ 2019-01-27 13:44:11


@[AC黑洞](/space/show?uid=141448) 感谢帮助
by UFP50103 @ 2019-01-28 07:43:26


|