Created
June 2, 2021 03:25
-
-
Save Kernelzero/f9571472d51528d6e412179710ac29ff to your computer and use it in GitHub Desktop.
This file contains 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
pastaList = list() | |
juiceList = list() | |
P_COUNT = 3 | |
J_COUNT = 2 | |
for _ in range(P_COUNT): | |
pastaList.append(int(input())) | |
for _ in range(J_COUNT): | |
juiceList.append(int(input())) | |
pastaList.sort() | |
juiceList.sort() | |
p_min = pastaList[0] | |
j_min = juiceList[0] | |
def getPrice(pasta, juice): | |
summary = pasta + juice | |
summary *= 1.1 | |
return summary | |
print('%.1f' % (getPrice(p_min, j_min))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment