-Code
from math import ceil
a, b, c = map(int, input().split())
t = int(input())
res = a if t > 0 else 0
t = max(0, t - 30)
res += ceil(t / b) * c
print(res)
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 32449번 Animal Farm (0) | 2025.04.06 |
---|---|
[백준/파이썬] 25786번 Decimal XOR (0) | 2025.04.05 |
[백준/파이썬] 30527번 Cornhusker (0) | 2025.04.03 |
[백준/파이썬] 8725번 Szachy (0) | 2025.04.02 |
[백준/파이썬] 33701번 새천년관 (0) | 2025.04.01 |