728x90
반응형
단순 사칙 연산 문제이다.
n = int(input())
k = int(input())
x = min(k + 60, n)
res = x*1500 + (n-x)*3000
print(res)
728x90
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 18411번 試験(python) (0) | 2021.02.09 |
---|---|
백준 알고리즘 18408번 3 つの整数(python) (0) | 2021.02.09 |
백준 알고리즘 18005번 Even or Odd?(python) (0) | 2021.02.09 |
백준 알고리즘 17903번 Counting Clauses(python) (5) | 2021.02.09 |
백준 알고리즘 17874번 Piece of Cake!(python) (0) | 2021.02.09 |