From a17e2965556deeace1d9b7458db401b212da42a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BF=D1=80=D0=B5=D1=81=D0=BD=D0=B5=D1=86=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=B4=D0=B0=D0=BD=D0=B8=D0=BB=D0=B0?= Date: Fri, 17 Apr 2026 22:43:56 +0300 Subject: [PATCH] problem solving --- .idea/.gitignore | 10 ++++++++++ .idea/PythonProject1.iml | 8 ++++++++ .idea/inspectionProfiles/profiles_settings.xml | 6 ++++++ .idea/misc.xml | 7 +++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ main.py | 11 +++++++++++ 7 files changed, 56 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/PythonProject1.iml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 main.py diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..ab1f416 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/PythonProject1.iml b/.idea/PythonProject1.iml new file mode 100644 index 0000000..c03f621 --- /dev/null +++ b/.idea/PythonProject1.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..590a59e --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..f9cb772 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..5b43a07 --- /dev/null +++ b/main.py @@ -0,0 +1,11 @@ +import math +def lcm(a: int, b: int) -> int: + if a == 0 or b == 0: + return 0 + return abs(a * b) // math.gcd(a, b) +if __name__ == "__main__": + num1 = 4 + num2 = 6 + result = lcm(num1, num2) + print(f"Наибольшее общее кратное двух чисел {num1} и {num2} равно {result}") +