#include using namespace std; #define SIZE 21 bool map[SIZE][SIZE]; void clear() { for(int j=0; j> n; if(n==0) break; clear(); for(int i=0; i> tx >> ty; map[tx][ty]=true; } cin >> m; x=y=10; for(int i=0; i> d >> move; for(int j=0; j0){ cout << "No" << endl; }else{ cout << "Yes" << endl; } } return 0; }