import math
def a(): # задача А
x = float(input('x = '))
y = float(input('y = '))
if x <= 2 and y <= x and 4 <= (x * x + y * y):
print('Yes!')
else:
print('No!')
a()
def b(): # задача Б
if (x >= 0) and (x <= math.pi) and (y <= math.sin(x)) and (y <= 0.5):
b()
def c(): # задача В
if (y <= (2 - x * x)) and ((y >= x) or (x >= 0)):
c()
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
import math
def a(): # задача А
x = float(input('x = '))
y = float(input('y = '))
if x <= 2 and y <= x and 4 <= (x * x + y * y):
print('Yes!')
else:
print('No!')
a()
def b(): # задача Б
x = float(input('x = '))
y = float(input('y = '))
if (x >= 0) and (x <= math.pi) and (y <= math.sin(x)) and (y <= 0.5):
print('Yes!')
else:
print('No!')
b()
def c(): # задача В
x = float(input('x = '))
y = float(input('y = '))
if (y <= (2 - x * x)) and ((y >= x) or (x >= 0)):
print('Yes!')
else:
print('No!')
c()