코딩 테스트 준비하기/백준-1차원 배열

[10807] 개수 세기

젤리의it 2023. 6. 29. 15:26
countss = int(input())
lists = list(map(int, input().split()))

num = int(input())
counts=0
for i in lists:
    if i == num :
        counts = counts+1

print(counts)

'코딩 테스트 준비하기 > 백준-1차원 배열' 카테고리의 다른 글

코드업 100제 - 6031 ~ 6040  (0) 2023.07.01
[10871] X보다 작은 수  (0) 2023.06.29