From 8a3a29ae08a1ecdf763466dfe998262c298cf618 Mon Sep 17 00:00:00 2001 From: Simon Green Date: Sun, 20 Nov 2022 20:28:06 +1100 Subject: Minor bug fix --- challenge-191/sgreen/python/ch-1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'challenge-191/sgreen/python/ch-1.py') diff --git a/challenge-191/sgreen/python/ch-1.py b/challenge-191/sgreen/python/ch-1.py index 38e9b0b853..f121df2fba 100755 --- a/challenge-191/sgreen/python/ch-1.py +++ b/challenge-191/sgreen/python/ch-1.py @@ -8,7 +8,7 @@ def main(s): nums = [int(x) for x in s] nums.sort() - print(1 if nums[-1] > 2 * nums[-2] else -1) + print(1 if nums[-1] >= 2 * nums[-2] else -1) if __name__ == '__main__': -- cgit