728x90
반응형
count를 사용해서 10부제를 위반하는 차량의 개수를 쉽게 셀 수 있다.
c = int(input())
print(list(map(int, input().split())).count(c))
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 10809번 알파벳 찾기(python) (0) | 2020.02.14 |
---|---|
백준 알고리즘 10808번 알파벳 개수(python) (0) | 2020.02.14 |
백준 알고리즘 10773번 제로(python) (0) | 2020.02.14 |
백준 알고리즘 10718번 We love kriii(python) (0) | 2020.02.14 |
백준 알고리즘 10569번 다면체(python) (0) | 2020.02.14 |