본문 바로가기
python-algorithm

[백준] 20233

by 무적김두칠 2021. 3. 11.

1
2
3
4
5
6
7
8
9
10
a=int(input())
x=int(input())
b=int(input())
y=int(input())
t=int(input())
if t>30: ans= a+((t-30)*x)*21
else: ans=a
if t>45: ans2= b+((t-45)*y)*21
else: ans2=b
print(ans, ans2)
cs
반응형

'python-algorithm' 카테고리의 다른 글

[백준] 2975  (0) 2021.03.11
[백준] 20353  (0) 2021.03.11
[백준] 20232  (0) 2021.03.09
[백준] 19602  (0) 2021.03.09
[백준] 18414  (0) 2021.03.09

댓글