From 22655d8a8bb5abaa0d14bbdaea157bbfe3bc2db1 Mon Sep 17 00:00:00 2001 From: user_2i Date: Mon, 15 Dec 2025 13:56:21 +0500 Subject: [PATCH] =?UTF-8?q?151225=20=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB?= =?UTF-8?q?=205=20=D0=B7=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B8?= =?UTF-8?q?=D0=B7=2020=202.2=20=D0=BF=D0=B0=D1=80=D0=B0=D0=B3=D1=80=D0=B0?= =?UTF-8?q?=D1=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lesson_5-2.2.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lesson_5-2.2.py b/lesson_5-2.2.py index e69de29..c611825 100644 --- a/lesson_5-2.2.py +++ b/lesson_5-2.2.py @@ -0,0 +1,10 @@ +'''******* задание 5 из 20 параграф 2.2 ******** +* У Пети было 7 яблок, а у Васи 6.Затем Петя отдал 3 яблока Васе, а у Толи взял 2 яблока.Вася попросил у Толи 5 яблок, но отдал Гене 2.Затем Дима дал Пете N яблок, а Васе M.Так у кого в итоге яблок больше — у Пети или Васи? +''' + +if __name__ == "__main__" + petya_apples, vasya_apples = int(input()), int(input()) + if vasya_apples + 3 > petya_apples: + print('Вася') + else: + print('Петя') \ No newline at end of file