#include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); int T; cin >> T; while(T--){ int K,M,N; cin >> K >> M >> N; if(M == 1 || N*2 > K){cout << "No\n"; continue;} vector B(K); for(int i=0; i ng(K); vector answer; for(int i=0; i N) answer.pop_back(); if(answer.size() < N) cout << "No\n"; else{ cout << "Yes\n"; for(int i=0; i