#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvvl vector #define vvl vector> #define VV(a, b, c, d) vector>(a, vector(b, c)) #define VVV(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define re(c, b) for(ll c=0;c> n >> k; ll S = (n*(n+1))/2; if(k==1){ std::cout << "Yes" << '\n'; rep(i, 1, n+1) std::cout << i << (i==n?"\n":" "); return 0; } if(S%k||n==k){ std::cout << "No" << '\n'; return 0; } std::cout << "Yes" << '\n'; ll num = n/k;//一人あたり vvl ans = VV(k, num, 0, ll); if(num%2==0){ for(int i=0;i