본문 바로가기
python-algorithm

[백준] 10807

by 무적김두칠 2021. 1. 11.

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를 이용해서 구하시면 쉽게 구합니다

반응형

'python-algorithm' 카테고리의 다른 글

[백준] 10809  (0) 2021.01.11
[백준] 10808  (0) 2021.01.11
[백준] 10275  (0) 2021.01.11
[백준] 10102  (0) 2021.01.11
[백준] 10093  (0) 2021.01.11

댓글