Created
June 7, 2025 09:55
-
-
Save modos/041ab69e52349d4fae696e41fa7210b7 to your computer and use it in GitHub Desktop.
Petrol
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = int(input()) | |
k = int(input()) | |
quota = k + 60 | |
if n <= quota: | |
cost = n * 1500 | |
else: | |
cost = quota * 1500 + (n - quota) * 3000 | |
print(cost) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment