Skip to content

Commit f5ca198

Browse files
committed
fix brain-gcd
1 parent 2181050 commit f5ca198

File tree

7 files changed

+2
-2
lines changed

7 files changed

+2
-2
lines changed
-259 Bytes
Binary file not shown.

brain_games/scripts/games/sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def type_brain_calc(first_number, sec_number):
2626
def type_brain_gcd(frs_num, sec_num):
2727
re = []
2828
max_num = max(frs_num, sec_num)
29-
for i in range(1, max_num):
29+
for i in range(1, max_num + 1):
3030
if frs_num % i == 0 and sec_num % i == 0:
3131
re.append(i)
3232
print(f'Question: {frs_num} {sec_num}')
-5.91 KB
Binary file not shown.

dist/hexlet_code-0.5.6.tar.gz

-7.79 KB
Binary file not shown.
5.91 KB
Binary file not shown.

dist/hexlet_code-0.5.7.tar.gz

7.75 KB
Binary file not shown.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "hexlet-code"
3-
version = "0.5.6"
3+
version = "0.5.7"
44
description = "Учебный проект из 6 команд"
55
authors = ["ttehasi <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)