728x90
반응형

count를 사용해서 10부제를 위반하는 차량의 개수를 쉽게 셀 수 있다.

c = int(input())
print(list(map(int, input().split())).count(c))

728x90
반응형

+ Recent posts