From 39f5d4592db0b19d1751a5f519d698a22c3bbfb6 Mon Sep 17 00:00:00 2001 From: shariik Date: Mon, 15 Dec 2025 13:28:31 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=2013=20?= =?UTF-8?q?=D0=BF=D0=B0=D1=80=D0=B0=D0=B3=D1=80=D0=B0=D1=84=202.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.2_lesson.13.20.py | 18 ++++++++++++++++++ 2.2_lesson.14.20.py | 0 2.2_lesson.15.20.py | 0 2.2_lesson.16.20.py | 0 2.2_lesson.17.20.py | 0 2.2_lesson.18.20.py | 0 2.2_lesson.19.20.py | 0 2.2_lesson.20.20.py | 0 8 files changed, 18 insertions(+) create mode 100644 2.2_lesson.13.20.py create mode 100644 2.2_lesson.14.20.py create mode 100644 2.2_lesson.15.20.py create mode 100644 2.2_lesson.16.20.py create mode 100644 2.2_lesson.17.20.py create mode 100644 2.2_lesson.18.20.py create mode 100644 2.2_lesson.19.20.py create mode 100644 2.2_lesson.20.20.py diff --git a/2.2_lesson.13.20.py b/2.2_lesson.13.20.py new file mode 100644 index 0000000..492a81b --- /dev/null +++ b/2.2_lesson.13.20.py @@ -0,0 +1,18 @@ +****Задание 13 Параграф 2.2*** +***Три числа были даны эльфам, семь — гномам, а девять достались человеческому роду. + +Но все они были обмануты... Потому что существовало ещё одно число. В стране Нумия, на бумаге из тёмного папируса, властелин Зерон тайно записал Единую Цифру, подчиняющую себе все великие числа. + +Давайте выясним, что это за цифра!*** + +if name == "main": + elves = int(input()) + dwarfs = int(input()) + humans = int(input()) + + if elves // 10 == dwarfs // 10 == humans // 10: + print(elves // 10) + elif elves % 10 == dwarfs % 10 == humans % 10: + print(elves % 10) + else: + print('NO') diff --git a/2.2_lesson.14.20.py b/2.2_lesson.14.20.py new file mode 100644 index 0000000..e69de29 diff --git a/2.2_lesson.15.20.py b/2.2_lesson.15.20.py new file mode 100644 index 0000000..e69de29 diff --git a/2.2_lesson.16.20.py b/2.2_lesson.16.20.py new file mode 100644 index 0000000..e69de29 diff --git a/2.2_lesson.17.20.py b/2.2_lesson.17.20.py new file mode 100644 index 0000000..e69de29 diff --git a/2.2_lesson.18.20.py b/2.2_lesson.18.20.py new file mode 100644 index 0000000..e69de29 diff --git a/2.2_lesson.19.20.py b/2.2_lesson.19.20.py new file mode 100644 index 0000000..e69de29 diff --git a/2.2_lesson.20.20.py b/2.2_lesson.20.20.py new file mode 100644 index 0000000..e69de29