Buggy python submission (verdict: Runtime Error):
def main():
    N,K,Q=map(int,input().split())
    sum2=[]
    score=[K]*N
    for i in range(Q):
        num=int(input())
        comp[i][:num-1]=[-1]*[num-1]
        comp[i][num-1]=[0]
        comp[i][num:N]=[-1]*[N-num]
    for i in range(N):
        sum2.append(sum(comp[i]))
    for i,j in zip(score,sum2):
        score.append(i+j)
    for s in score:
        if s>0:
            print('Yes')
        else:
            print('No')

if __name__=='__main__':
    main()


Fixed submission:
n, k, q = map(int, input().split())
points = [k] * n
a = []
for i in range(q):
    a.append(int(input())-1)
for cand in a:
    points[cand] += 1
points = [i-q for i in points]
ans = ["Yes" if i > 0 else "No" for i in points]
print(*ans, sep="\n")

Buggy python submission (verdict: Runtime Error):
def main():
    N,K,Q=map(int,input().split())
    sum2=[]
    score=[K]*N
    for i in range(Q):
        num=int(input())
        comp[i][:num-1]=[-1]*[num-1]
        comp[i][num-1]=[0]
        comp[i][num:N]=[-1]*[N-num]
    for i in range(N):
        sum2.append(sum(comp[i]))
    for i,j in score,sum2:
        score.append(i+j)
    for s in score:
        if s>0:
            print('Yes')
        else:
            print('No')

if __name__=='__main__':
    main()


Fixed submission:
n, k, q = map(int, input().split())
points = [k] * n
a = []
for i in range(q):
    a.append(int(input())-1)
for cand in a:
    points[cand] += 1
points = [i-q for i in points]
ans = ["Yes" if i > 0 else "No" for i in points]
print(*ans, sep="\n")

Buggy python submission (verdict: Runtime Error):
def main():
    N,K,Q=map(int,input().split())
    sum2=[]
    score=[]
    for i in range(Q):
        num=int(input())
        comp[i][:num-1]=[-1]*[num-1]
        comp[i][num-1]=[0]
        comp[i][num:N]=[-1]*[N-num]
    for i in range(N):
        sum2.append(sum(comp[i]))
    for i,j in score,sum2:
        score.append(i+j)
    for s in score:
        if s>0:
            print('Yes')
        else:
            print('No')

if __name__=='__main__':
    main()


Fixed submission:
n, k, q = map(int, input().split())
points = [k] * n
a = []
for i in range(q):
    a.append(int(input())-1)
for cand in a:
    points[cand] += 1
points = [i-q for i in points]
ans = ["Yes" if i > 0 else "No" for i in points]
print(*ans, sep="\n")

Buggy python submission (verdict: Time Limit Exceeded):
def main():
    N,K,Q=map(int,input().split())
    score=[K]*N
    for _ in range(Q):
        num=int(input())
        for j in range(num-1):
            score[j]-=1
        for k in range(num,N):
            score[k]-=1
    for s in score:
        if s>0:
            print('Yes')
        else:
            print('No')

if __name__=='__main__':
    main()


Fixed submission:
n, k, q = map(int, input().split())
points = [k] * n
a = []
for i in range(q):
    a.append(int(input())-1)
for cand in a:
    points[cand] += 1
points = [i-q for i in points]
ans = ["Yes" if i > 0 else "No" for i in points]
print(*ans, sep="\n")

Buggy python submission (verdict: Time Limit Exceeded):
def main():
    N,K,Q=map(int,input().split())
    score=[K]*N
    for _ in range(Q):
        num=int(input())
        for j in range(num-1):
            score[j]-=1
        for k in range(num,N):
            score[k]-=1
    for s in score:
        if s>0:
            print('Yes')
        else:
            print('No')

if __name__=='__main__':
    main()


Fixed submission:
n, k, q = map(int, input().split())
points = [k] * n
a = []
for i in range(q):
    a.append(int(input())-1)
for cand in a:
    points[cand] += 1
points = [i-q for i in points]
ans = ["Yes" if i > 0 else "No" for i in points]
print(*ans, sep="\n")

Buggy python submission (verdict: Time Limit Exceeded):
def main():
    N,K,Q=map(int,input().split())
    score=[K]*N
    A=[int(input()) for _ in range(Q)]
    for i in A:
        for j in range(i-1):
            score[j]-=1
        for k in range(i,N):
            score[k]-=1
    for s in score:
        if s>0:
            print('Yes')
        else:
            print('No')

if __name__=='__main__':
    main()


Fixed submission:
n, k, q = map(int, input().split())
points = [k] * n
a = []
for i in range(q):
    a.append(int(input())-1)
for cand in a:
    points[cand] += 1
points = [i-q for i in points]
ans = ["Yes" if i > 0 else "No" for i in points]
print(*ans, sep="\n")

Buggy python submission (verdict: Time Limit Exceeded):
def main():
    N,K,Q=map(int,input().split())
    score=[K]*N
    A=[int(input()) for _ in range(Q)]
    for i in A:
        for j in range(i-1):
            score[j]-=1
        for k in range(i,N):
            score[k]-=1
    for s in score:
        if s>0:
            print('Yes')
        else:
            print('No')

if __name__=='__main__':
    main()


Fixed submission:
n, k, q = map(int, input().split())
points = [k] * n
a = []
for i in range(q):
    a.append(int(input())-1)
for cand in a:
    points[cand] += 1
points = [i-q for i in points]
ans = ["Yes" if i > 0 else "No" for i in points]
print(*ans, sep="\n")

Buggy python submission (verdict: Time Limit Exceeded):
N,K,Q=map(int,input().split())
score=[K]*N
A=[]
for _ in range(Q):
    A.append(int(input()))
for i in A:
    for j in range(i-1):
        score[j]-=1
    for k in range(i,N):
        score[k]-=1
for s in score:
    if s>0:
        print('Yes')
    else:
        print('No')


Fixed submission:
n, k, q = map(int, input().split())
points = [k] * n
a = []
for i in range(q):
    a.append(int(input())-1)
for cand in a:
    points[cand] += 1
points = [i-q for i in points]
ans = ["Yes" if i > 0 else "No" for i in points]
print(*ans, sep="\n")