#include<stdio.h> #include<math.h> int s,x,v=7,step; double dis; int main(){ scanf("%d%d",&s,&x); step=ceil(log(1-(s-x)*(0.02)/7)/log(0.98));//求到最近的检查区域步数 step+=1; dis = 7*(1-pow(0.98,step))/0.02;//加一步的位置 if(dis<=s+x){ printf("y"); } else{ printf("n"); } return 0; }