Create 1 - Timbits
This commit is contained in:
parent
04578ce07f
commit
48dbf47a6a
16
06D/1 - Timbits
Normal file
16
06D/1 - Timbits
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
timbitsLeft = int(input())
|
||||||
|
totalCost = 0
|
||||||
|
|
||||||
|
bigBoxes = int(timbitsLeft / 40)
|
||||||
|
totalCost = bigBoxes * 6.19
|
||||||
|
timbitsLeft -= 40 * bigBoxes
|
||||||
|
|
||||||
|
if timbitsLeft >= 20:
|
||||||
|
totalCost += 3.39
|
||||||
|
timbitsLeft -= 20
|
||||||
|
if timbitsLeft >= 10:
|
||||||
|
totalCost += 1.99
|
||||||
|
timbitsLeft -= 10
|
||||||
|
|
||||||
|
totalCost += timbitsLeft * 0.20 # step 6
|
||||||
|
print(totalCost)
|
Loading…
Reference in New Issue
Block a user