Skip to content

Instantly share code, notes, and snippets.

@modos
Created June 7, 2025 09:55
Show Gist options
  • Save modos/041ab69e52349d4fae696e41fa7210b7 to your computer and use it in GitHub Desktop.
Save modos/041ab69e52349d4fae696e41fa7210b7 to your computer and use it in GitHub Desktop.
Petrol
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