#include using namespace std; #define all(v) (v).begin(),(v).end() #define pb(a) push_back(a) #define rep(i, n) for(int i=0;i> t; rep(_, t) { ll k, m, n; cin >> k >> m >> n; m --; if(m == 0) { cout << "No" << endl; continue; } vector a; for(ll i = 0; i < k; i += m * 2) { for(ll j = 0; j < m; j ++) if(i + j + m < k) { a.pb(i + j + 1); // if(k == 35)cout << i + j + 1 << " "; } } if((ll)a.size() < n) { cout << "No" << endl; continue; } cout << "Yes" << endl; rep(i, n) cout << a[i] << " "; cout << endl; } return 0; }