Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- N = int(input())
- arr_hp_keys = list(map(int, input().split(' ')))
- sum_clicked = int(input())
- path_keys = list(map(int, input().split(' ')))
- for key in path_keys:
- arr_hp_keys[key - 1] -= 1
- for key1 in arr_hp_keys:
- if key1 < 0:
- print('YES')
- else:
- print('NO')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement