#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x>N>>K; tar=N-1; x=y=tar%(K+1); cout<>y; if(y>=N) return; i=(K+1)-(y-x); x+=K+1; cout<