From b68d86e0a1f7cace942e73c722cdc6f088ea0cef Mon Sep 17 00:00:00 2001 From: none Date: Mon, 29 Jan 2024 23:23:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B1=D1=8B=D0=BB=20=D0=B8=D1=81?= =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=200=20?= =?UTF-8?q?=D0=BD=D0=B0=201=20=D0=B2=20=D0=BA=D0=BE=D0=BB=D0=B8=D1=87?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D0=B2=D0=B5=20=D0=B2=D0=B5=D1=89=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calc.py b/calc.py index c2e0084..0976458 100644 --- a/calc.py +++ b/calc.py @@ -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