Language: C

#!/usr/bin/env python3
import sys
import numpy as np

YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(N: int, K: int, Q: int, A: "List[int]"):
    human = np.full(N, K)
    score = np.zeros(N)
    #print(human)
    for i in range(Q):
        #print("i =", i)
        # ind = np.ones(N, dtype=bool)
        # ind[A[i]-1] = False
        # human[ind] = human[ind] - 1
        # ind[A[i]-1] = True
        #human[A[i]-1] += 1
        #print('human =', human)
        score[A[i]-1] += 1

    human = human - Q + score

    #print(human)
    human2 = list(map(lambda x: YES if x > 0 else NO, human))
    print('\n'.join(human2))
    '''
    for j in range(N):
        #print(j, human[j])
        if human[j] > 0:
            print(YES)
        else:
            print(NO)
    '''
    return
    

def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    N = int(next(tokens))  # type: int
    K = int(next(tokens))  # type: int
    Q = int(next(tokens))  # type: int
    A = [int(next(tokens)) for _ in range(Q)]  # type: "List[int]"
    solve(N, K, Q, A)

if __name__ == '__main__':
    main()


Compiler output:
main.c:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python3
      |  ^
main.c:2:1: error: unknown type name 'import'
    2 | import sys
      | ^~~~~~
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    3 | import numpy as np
      | ^~~~~~
main.c:3:1: error: unknown type name 'import'
main.c:5:14: error: stray '#' in program
    5 | YES = "Yes"  # type: str
      |              ^
main.c:6:12: error: stray '#' in program
    6 | NO = "No"  # type: str
      |            ^
main.c:12:6: error: invalid preprocessing directive #print
   12 |     #print(human)
      |      ^~~~~
main.c:14:10: error: invalid preprocessing directive #print
   14 |         #print("i =", i)
      |          ^~~~~
main.c:15:11: error: invalid preprocessing directive #ind
   15 |         # ind = np.ones(N, dtype=bool)
      |           ^~~
main.c:16:11: error: invalid preprocessing directive #ind
   16 |         # ind[A[i]-1] = False
      |           ^~~
main.c:17:11: error: invalid preprocessing directive #human
   17 |         # human[ind] = human[ind] - 1
      |           ^~~~~
main.c:18:11: error: invalid preprocessing directive #ind
   18 |         # ind[A[i]-1] = True
      |           ^~~
main.c:19:10: error: invalid preprocessing directive #human
   19 |         #human[A[i]-1] += 1
      |          ^~~~~
main.c:20:10: error: invalid preprocessing directive #print
   20 |         #print('human =', human)
      |          ^~~~~
main.c:25:6: error: invalid preprocessing directive #print
   25 |     #print(human)
      |      ^~~~~
main.c:28:5: error: empty character constant
   28 |     '''
      |     ^~
main.c:28:7: warning: missing terminating ' character
   28 |     '''
      |       ^
main.c:28:7: error: missing terminating ' character
main.c:30:10: error: invalid preprocessing directive #print
   30 |         #print(j, human[j])
      |          ^~~~~
main.c:35:5: error: empty character constant
   35 |     '''
      |     ^~
main.c:35:7: warning: missing terminating ' character
   35 |     '''
      |       ^
main.c:35:7: error: missing terminating ' character
main.c:45:28: error: stray '#' in program
   45 |     N = int(next(tokens))  # type: int
      |                            ^
main.c:46:28: error: stray '#' in program
   46 |     K = int(next(tokens))  # type: int
      |                            ^
main.c:47:28: error: stray '#' in program
   47 |     Q = int(next(tokens))  # type: int
      |                            ^
main.c:48:48: error: stray '#' in program
   48 |     A = [int(next(tokens)) for _ in range(Q)]  # type: "List[int]"
      |                                                ^
main.c:51:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   51 | if __name__ == '__main__':
      |                ^~~~~~~~~~