Забыл исправление 0 на 1 в количестве вещества

main
none 10 months ago
parent b803125133
commit b68d86e0a1

@ -51,12 +51,12 @@ def sround(num, parts):
acc = [1,2,3,4,5]
num = floor(num)
if num == 0:
return 1
if num in acc:
return num
elif num%5 == 0:
return num
elif num == 0:
return 1
while num%5 != 0:
num -= 1

Loading…
Cancel
Save