#10807 ๊ฐœ์ˆ˜ ์„ธ๊ธฐ๐Ÿ˜ถโ€๐ŸŒซ๏ธ

sso0_zยท2022๋…„ 10์›” 29์ผ
0

๋ฐฑ์ค€

๋ชฉ๋ก ๋ณด๊ธฐ
5/40

๋ฌธ์ œ๐Ÿ“

์ฝ”๋“œ๐Ÿ’ป

n = int(input())
a = list(map(int, input().split()))
v = int(input())

print(a.count(v))

๊ฒฐ๊ณผ๐Ÿ˜

ํ’€์ด๐Ÿ’ก

  • list๋ช….count(์ฐพ๊ณ ์ž ํ•˜๋Š” ๋ฌธ์ž)
    ํ•ด๋‹น list ์•ˆ์— ์ฐพ๊ณ ์ž ํ•˜๋Š” ๋ฌธ์ž๊ฐ€ ๋ช‡ ๊ฐœ ์žˆ๋Š”์ง€ ๊ฐฏ์ˆ˜๋ฅผ ์…ˆ
profile
์ฑ„์†Œ

0๊ฐœ์˜ ๋Œ“๊ธ€