From 144cb92809830367240a439d95b479c5c140c86a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=20=E2=84=96=205=20=D0=B0=D1=83=D0=B4=D0=B8?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=B8=D0=B8=20=D0=96-113?= Date: Mon, 27 Oct 2025 10:17:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D1=89=D0=B8=D1=82=D0=B0=205-=D0=BE?= =?UTF-8?q?=D0=B9=20=D0=BB=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=BD=D0=BE=D0=B9=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tests/test5.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Tests/test5.py diff --git a/Tests/test5.py b/Tests/test5.py new file mode 100644 index 0000000..fca7b08 --- /dev/null +++ b/Tests/test5.py @@ -0,0 +1,13 @@ +sps = [] +fl = True +while fl: + n = int(input()) + sps.append(n) + if (sps[0]>0 and sps[1]<0) or (sps[0]<0 and sps[1]>0): + print("Знаки должны совпвдвть") + sps.pop() + continue + if len(sps)==2: + break +print(sps) +