python-algorithm
[백준] 10807
무적김두칠
2021. 1. 11. 10:25
1
2
3
4
|
import sys
n=int(sys.stdin.readline())
tmp=list(map(int, sys.stdin.readline().split()))
print(tmp.count(int(sys.stdin.readline())))
|
cs |
내장함수 count를 이용해서 구하시면 쉽게 구합니다
반응형