#pragma GCC optimize("Ofast") #pragma GCC target("avx2") #define rd_init() char*rp=({char*mmap();mmap(0l,1l<<25,1,2,0,0ll);}) #define rd() ({int _v=0,_c;while(_c=*rp++-48,_c>=0)_v=_v*10+_c;_v;}) #define rep(v,e) for(typeof(e) v=0;v=0&&(a[i+1]||i+k<=n&&a[i+k])){ if(a[i]){ write(1,"Yes",3); _exit(0); } a[i]=1; }else{ a[i]=0; } } write(1,"No",2); _exit(0); }