알고리즘: 바이러스
2021. 9. 30. 14:00ㆍAlgorithm
- 목차
반응형
import sys
K, P, N = map(int, sys.stdin.readline().split())
for _ in range(N):
K = K*P%1000000007
print(K%1000000007)
반응형
2021. 9. 30. 14:00ㆍAlgorithm
import sys
K, P, N = map(int, sys.stdin.readline().split())
for _ in range(N):
K = K*P%1000000007
print(K%1000000007)