[Boj] 10807번 : 개수 세기
2024. 8. 4. 13:45ㆍAlgorithm
1. problem :
https://www.acmicpc.net/problem/10807
2. solution 1 :
# 입력 받기
N = int(input()) # 정수의 개수
nums = list(map(int, input().split())) # 정수 리스트
target = int(input()) # 찾으려는 정수
# target의 개수 세기
count = nums.count(target)
# 결과 출력
print(count)
'Algorithm' 카테고리의 다른 글
[Boj]1919: 애너그램 만들기 (0) | 2024.08.04 |
---|---|
[Boj]11326:Strfry (0) | 2024.08.04 |
[Boj]3273번 : 두 수의 합 (0) | 2024.08.04 |
[Boj]1475 :방 번호 (0) | 2024.08.04 |
[Leetcode]981. Time Based Key-Value Store (0) | 2024.08.03 |