Загрузил файлы по заданию от 03.02.2026

Файлы называются dop, т.к. эти задания я выполнял в рамках дополнительнего задания на одной из первых пар

Signed-off-by: Reisber <admin@reisber.space>
This commit is contained in:
2026-02-03 13:38:04 +00:00
parent a5f5bbcae5
commit 520e22fd19
5 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
x = float(input())
a = float(input())
if x < -5:
y = a * (x) * -1 * 2
print(round(y, 3))
elif -5 < x < 1:
modulex = abs(x)
y = a * modulex
print(round(y, 3))
elif x >= 1 and (a - x != 0):
y = 1 / (a - x)
print(round(y, 3))
else:
print("На ноль делить нельзя")

View File

@@ -0,0 +1,13 @@
Valuta = input()
amount = int(input())
usdt = int(100)
euro = int(120)
yuan = int(32)
if "Доллары" in (Valuta):
print(round(amount / usdt, 2))
elif "Евро" in (Valuta):
print(round(amount / euro, 2))
elif "Йены" in (Valuta):
print(round(amount / yuan, 2))
else:
print("Валюта указана не корректно")

View File

@@ -0,0 +1,22 @@
god = int(input())
mesayc = int(input())
visokosny = 0
if ((god%4 == 0) and (god % 100 != 0)) or (god%400 == 0):
print ("Год является високосным")
visokosny = 1
else:
print("Год не является високосным")
visokosny = 0
if (mesayc in (1,3,5,7,8,10,12)):
print ("В месяце 31 день")
elif (mesayc in (4,6,9,11)):
print ("В месяце 30 дней")
elif (mesayc == 2) and (visokosny == 0):
print ("В месяце 28 дней")
elif (mesayc == 2) and (visokosny ==1 ):
print ("В месяце 29 дней")
else:
print ("Месяц введён не коректно")

View File

@@ -0,0 +1,25 @@
print("Введите сумму покупки")
Summa = int(input())
print("Введите количество денег покуптеля")
amount = int(input())
if Summa < 500:
if Summa == amount:
print("Спасибо!")
elif Summa > amount:
print("Дайте ещё деняк")
else:
print("Возьмите сдачу равную ", amount - Summa)
if 500 <= Summa < 1000:
if Summa == amount:
print("Спасибо!")
elif Summa > amount:
print("ЕЩЁ ДЕНЯЯЯЯЯК")
else:
print("Возьмите сдачу равную:", amount - ((Summa / 100) * 97))
if 1000 <= Summa:
if Summa == amount:
print("Спасибо!")
elif Summa > amount:
print("ЕЩЁ ДЕНЯЯЯЯЯК")
else:
print("Возьмите сдачу равную:", amount - ((Summa / 100) * 95))

View File

@@ -0,0 +1,23 @@
from math import sqrt
a = int(input())
b = int(input())
c = int(input())
if ((a > 0) and (b > 0) and (c > 0)) and ((a + b > c) and (a + c > b) and (c + b > a)):
p = (a + b + c) / 2
s = sqrt((p * (p - a) * (p - b) * (p - c)))
print(s)
if (c**2 < a**2 + b**2) and ((a**2 < c**2 + b**2)) and (b**2 < a**2 + c**2):
print("Треугольник остроугольный")
elif (
((c**2) == (a**2 + b**2))
or ((a**2) == (c**2 + b**2))
or ((b**2) == (a**2 + c**2))
):
print("Треугольник прямоугольный")
elif a == b == c:
print("Треугольник равнобедренный")
else:
print("Треугольник немного глупенький")
else:
print("Невозможно построить треугольник")