ichernikov21
01.05.2023 10:53

Tehnik vositalar, yani kompyuterniy apparat qurilmalari inglizchada qaysi soz bilan ifodalanadi​

Нажмите на рекламу ниже и сразу увидите ответ
Популярные вопросы:
Ответ:
CloseBooks
24.11.2021 02:30

ответ: 1499 9949

Python:

def f(n):

   digits = [int(i) for i in str(n)]

   # 1

   first_sum = digits[0] + digits[1]

   # 2

   second_sum = digits[1] + digits[2]

   # 3

   third_sum = digits[2] + digits[3]

   # 4

   amounts = [first_sum, second_sum, third_sum]

   del amounts[amounts.index(min(amounts))]

   # 5

   amounts.sort()

   return int(str(amounts[0]) + str(amounts[1]))

numbers = []

for x in range(1000, 10000):

   if f(x) == 1318:

       numbers.append(x)

print(numbers[0], numbers[-1])

0,0(0 оценок)
Ответ:
rewington1
17.11.2022 22:11

import math

a = [float(input("Input x: ")), float(input("Input y: "))]

print(a)

x = a[0]

y = a[1]

y1 = x-1

if abs(x)<=1:

   y2 = math.sqrt(1-x**2)

if x>=0 and y>=y1 and y<=1:

   print("Yes")

elif x>=0 and x<=1 and y<y1 and abs(y)<=y2:

   print("Yes")

else:

   print("No")

a = [float(input("Input x: ")), float(input("Input y: "))]

print(a)

x = a[0]

y = a[1]

if abs(x)<=1:

   y2 = math.sqrt(1-x**2)

if abs(x)<=1 and abs(y)<=y2:

   print("Yes")

elif x>=0 and x<=1 and y>=0 and y<=1:

   print("Yes")

else:

   print("No")

Объяснение:

0,0(0 оценок)
Полный доступ
Позволит учиться лучше и быстрее. Неограниченный доступ к базе и ответам от экспертов и ai-bota Оформи подписку
logo
Начни делиться знаниями
Вход Регистрация
Что ты хочешь узнать?
Спроси ai-бота