Skip to content

Commit 75b0acd

Browse files
committed
[BOJ] #17496. 스타후르츠 / 브론즈3 / 10분 / 성공
1 parent 155a323 commit 75b0acd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import sys
2+
input = sys.stdin.readline
3+
4+
# N: 여름 일 수, T: 스타후르츠 자라는데 걸리는 일 수, C: 스타후르츠를 심을 수 있는 칸 수, # P: 개당 가격
5+
N, T, C, P = map(int, input().split())
6+
7+
day = (N-1) // T
8+
profit = day * C * P
9+
print(profit)

0 commit comments

Comments
 (0)