Beakjoon&프로그래머스/파이썬
[백준/파이썬] 1453번 피시방 알바
현장
2021. 12. 23. 17:09
-코드
arr = [0] * 101
n = int(input())
p = list(map(int, input().split()))
cnt = 0
for i in p:
if arr[i] == 0:
arr[i] = 1
else:
cnt += 1
print(cnt)