From cadb079ff92b6d4bfe623d1f69c1b8e06dfb913d Mon Sep 17 00:00:00 2001 From: Victor Alexandrovich Tsyrenschikov <77172321+tsyrenschikov@users.noreply.github.com> Date: Sun, 9 Nov 2025 23:27:50 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=81=D1=83=D1=88=D0=B8=D1=82=D0=B5?= =?UTF-8?q?=D0=BB=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- one.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/one.py b/one.py index 996686b..0dbc1f1 100644 --- a/one.py +++ b/one.py @@ -1,3 +1,6 @@ -for i in '1234': - b=int(i)*2 - print(b) \ No newline at end of file +key=int(input()) +if key==3: + print('Дверь открыта') +elif key<3: + print(3-key,'Не хватает ключей') +else:print(key-3,'Лишние ключи') \ No newline at end of file