#ifndef ONLINE_JUDGE #define _GLIBCXX_DEBUG // []で配列外参照をするとエラーにしてくれる。上下のやつがないとTLEになるので注意 #endif #include using namespace std; // #include // using namespace atcoder; // #include // using namespace boost::multiprecision; using ll = long long; using Graph = vector>; ll INF = 2e18 + 1; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin>>n; mapmp; for(int i=0;i>x; mp[x]++;} int q; cin>>q; for(;q--;){ int x,y; cin>>x>>y; cout<<((mp[x]>=y)?"Yes":"No")<