#include <bits/stdc++.h> using namespace std; double s,x,l=0,v=7; int main(){ cin>>s>>x; if(l<s-x){ l+=v; v*=0.98; } if(v<s+x-l) cout<<'y'; else cout<<'n'; return 0; }
搞不懂为什么用while就可以了,换成if 就过不去了