로딩
티스토리 데이터 처리 중입니다.

[구현/수학] 백준 18330 Petrol - 파이썬(Python)

 [구현/수학] 백준 18330 Petrol - 파이썬(Python)

[ Contents ] 1. 문제 (링크 참조) 18330번: Petrol The input consists of two lines.

The first line contains an integer n (0 ⩽ n ⩽ 200), specifying the amount of petrol that will be used in the next month. The second line contains an integer k (0 ⩽ k ⩽ 360), showing the quota left in Mahya’s fuel www.acmicpc.net 2.

문제 풀이 매달 60리터는 1500 Oshloobs로 싸게 쌀 수 있습니다. 하지만, 60리터를 초과하면 2배로 비싼 3000 Oshloobs를 지불해야 합니다. .....