Skip to content

Instantly share code, notes, and snippets.

@ateruimashin
Created May 28, 2020 21:40
Show Gist options
  • Save ateruimashin/8b1f0b10d26606c593b4f384fe14a726 to your computer and use it in GitHub Desktop.
Save ateruimashin/8b1f0b10d26606c593b4f384fe14a726 to your computer and use it in GitHub Desktop.
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i,s,n) for(int i = (s); i < (n); i++)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main(){
int n, k, q;
cin >> n >> k >> q;
int a[n];
rep(i, n) a[i] = k - q;
rep(i, q) {
int j;
cin >> j;
a[j - 1]++;
}
rep(i,n){
if(a[i]>0)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment