From 133f5db9c3354a1d936c96d485e1e830fbdd4508 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 9 Dec 2025 14:33:13 +0500 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=2020?= =?UTF-8?q?=20=D0=B2=D1=8B=D0=BF=D0=BE=D0=BB=D0=BD=D0=B8=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.1_lesson.20.20.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/2.1_lesson.20.20.py b/2.1_lesson.20.20.py index e69de29..262e5fc 100644 --- a/2.1_lesson.20.20.py +++ b/2.1_lesson.20.20.py @@ -0,0 +1,8 @@ +****** Задание 20 Параграф 2.1 ****** +****** ернёмся в магазин, хозяин которого уже привык полагаться на всемогущую автоматизацию. ****** + +if name == "main": + weight, price, price_1, price_2 = int(input()), int(input()), int(input()), int(input()) + weight_1 = int((price - price_2) * weight / (price_1 - price_2)) + weight_2 = weight - weight_1 + print(weight_1, weight_2)