BOJ/Baekjun-10797-python
質問する

に答える
コード#コード#
# https://www.acmicpc.net/problem/10797
# boj, 10797: 10부제, python3
import sys
input = sys.stdin.readline
def solve(day: int, bunhos: list) -> int:
return sum([1 for bunho in bunhos if bunho == day])
if __name__ == '__main__':
day = int(input())
bunhos = list(map(int, input().split()))
print(solve(day, bunhos))
結果

ソース&ハーブ
BOJ 10797
github
Reference
この問題について(BOJ/Baekjun-10797-python), 我々は、より多くの情報をここで見つけました https://velog.io/@cosmos/BOJ백준-10797-pythonテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol