Skip to content

Commit 0abc200

Browse files
committed
230520 Softeer 바이러스
1 parent b0d88fa commit 0abc200

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Softeer/Level2/바이러스.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# https://softeer.ai/practice/info.do?idx=1&eid=407
2+
3+
import sys
4+
5+
k, p, n = map(int, input().split())
6+
7+
# 바이러스 k마리가 1초당 p배씩 증가
8+
9+
for i in range(n):
10+
k = (k * p) % 1000000007
11+
12+
print(k)

0 commit comments

Comments
 (0)