Buggy python submission (verdict: Time Limit Exceeded):
import sys	

num1 = list(map(int, input().split()))
N = num1[0] #参加者数
K = num1[1] #初期ポイント
Q = num1[2] #出た正解の数
ans_list = []
for index0 in range(Q):
	ans_list.append(int(input()))
for index1 in range(1,N+1):
	point = 0
	point=ans_list.count(index1)

	fin=K+point-Q

	
	if fin <=0:
		print("No")
	else:
		print("Yes")
		

Fixed submission:
N, K, Q = map(int,input().split())
point_list = [0 for i in range(N+1)]
for i in range(Q):
    A = int(input())
    point_list[A]+=1
for i in range(1,N+1):
    if point_list[i]+K-Q<=0:
        print("No")
    else:
        print("Yes")

Buggy python submission (verdict: Time Limit Exceeded):
import sys	

num1 = list(map(int, input().split()))
N = num1[0] #参加者数
K = num1[1] #初期ポイント
Q = num1[2] #出た正解の数
ans_list = []
for index1 in range(Q):
	ans_list.append(int(input()))
for index1 in range(1,N+1):
	point = 0
	for index2 in range(Q):
		if index1==ans_list[index2]:
			point +=1

	fin=K+point-Q

	
	if fin <=0:
		print("No")
	else:
		print("Yes")
		

Fixed submission:
N, K, Q = map(int,input().split())
point_list = [0 for i in range(N+1)]
for i in range(Q):
    A = int(input())
    point_list[A]+=1
for i in range(1,N+1):
    if point_list[i]+K-Q<=0:
        print("No")
    else:
        print("Yes")

Buggy python submission (verdict: Runtime Error):
import sys	

num1 = list(map(int, input().split()))
N = num1[0] #参加者数
K = num1[1] #初期ポイント
Q = num1[2] #出た正解の数
ans_list = []
for index1 in range(Q):
	ans_list.append(int(input()))
for index1 in range(1,N+1):
	point = 0
	for index2 in ans_list:
		if index1==ans_list[index2]:
			point +=1

	fin=K+point-Q
	
	if fin <=0:
		print("No")
	else:
		print("Yes")
		

Fixed submission:
N, K, Q = map(int,input().split())
point_list = [0 for i in range(N+1)]
for i in range(Q):
    A = int(input())
    point_list[A]+=1
for i in range(1,N+1):
    if point_list[i]+K-Q<=0:
        print("No")
    else:
        print("Yes")

Buggy python submission (verdict: Time Limit Exceeded):
import sys	

num1 = list(map(int, input().split()))
N = num1[0] #参加者数
K = num1[1] #初期ポイント
Q = num1[2] #出た正解の数
ans_list = []
for index1 in range(Q):
	ans_list.append(int(input()))
for index1 in range(1,N+1):
	point = 0
	for index2 in range(len(ans_list)):
		if index1==ans_list[index2]:
			point +=1
	#print(point)
	fin=K+point-Q
	#print(fin)
	
	if fin <=0:
		print("No")
	else:
		print("Yes")
		

Fixed submission:
N, K, Q = map(int,input().split())
point_list = [0 for i in range(N+1)]
for i in range(Q):
    A = int(input())
    point_list[A]+=1
for i in range(1,N+1):
    if point_list[i]+K-Q<=0:
        print("No")
    else:
        print("Yes")

Buggy python submission (verdict: Runtime Error):
import sys

def cal(x):
	point = 0
	for index2 in ans_list:
		if x==ans_list[index2]:
			point +=1
	score=K+point-Q
	return score	

num1 = list(map(int, input().split()))
N = num1[0] #参加者数
K = num1[1] #初期ポイント
Q = num1[2] #出た正解の数
ans_list = []
for index1 in range(Q):
	ans_list.append(int(input()))
for index1 in range(N):
	fin = cal(index1)
	if fin <=0:
		print("No")
	else:
		print("Yes")

Fixed submission:
N, K, Q = map(int,input().split())
point_list = [0 for i in range(N+1)]
for i in range(Q):
    A = int(input())
    point_list[A]+=1
for i in range(1,N+1):
    if point_list[i]+K-Q<=0:
        print("No")
    else:
        print("Yes")