728x90
반응형
단순 사칙연산 문제이다.
N, M = map(int, input().split())
li = list(map(int, input().split()))
res = 1
for n in li:
res *= n
print(res%M)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 15917번 노솔브 방지문제야!!(python) (0) | 2021.02.27 |
---|---|
백준 알고리즘 15820번 맞았는데 왜 틀리죠?(python) (0) | 2021.02.27 |
백준 알고리즘 15792번 A/B - 2(python) (0) | 2021.02.27 |
백준 알고리즘 15784번 질투진서(python) (0) | 2021.02.27 |
백준 알고리즘 15781번 헬멧과 조끼(python) (0) | 2021.02.27 |