“1044 URI Solution” Ответ

1044 URI Solution

# 1044 Multiples
a, b = map(int,input().split())
if a%b ==0 or b%a == 0:
    print("Sao Multiplos")
else:
    print("Nao sao Multiplos")
Exuberant Echidna

1042 URI Solution

#uri 1042 solution || simple sort
x, y, z = map(int,input().split())
arr = [x,y,z]
arr.sort()
print(f"{arr[0]}\n{arr[1]}\n{arr[2]}")
print(f"\n{x}\n{y}\n{z}")
Exuberant Echidna

1041 URI Solution

//uri problem 1041 || coordinates of a point in python 3.9

inp = input()
x, y = inp.split()
x = float(x)
y = float(y)
if x == 0 and y ==0:
    print("Origem")
elif(x==0):
    print("Eixo Y")
elif(y==0):
    print("Eixo X")
elif x > 0 and y > 0:
    print("Q1")
elif x < 0 and y > 0:
    print("Q2")
elif x < 0 and y < 0:
    print("Q3")
elif x > 0 and y < 0:
    print("Q4")
Exuberant Echidna

1043 URI Solution

# 1043 triangle
a, b, c = map(float,input().split())
if a+b > c and b+c > a and a+c > b:
    peri = a+b+c
    print("Perimetro = {:.1f}".format(peri))
else:
    area = ((a+b)/2) *c
    print("Area = {:.1f}".format(area))
Exuberant Echidna

Ответы похожие на “1044 URI Solution”

Вопросы похожие на “1044 URI Solution”

Больше похожих ответов на “1044 URI Solution” по Python

Смотреть популярные ответы по языку

Смотреть другие языки программирования