Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # задача 2
- password = input()
- password_correct = input()
- if password == password_correct:
- print('True')
- else:
- print('False')
- # задача 3
- a = []
- n = int(input())
- for i in range(n):
- a.append(int(input()))
- print(min(a))
- # задача 4
- a = []
- n = int(input())
- for i in range(n):
- a.append(int(input()))
- print(max(a))
- # задача 5
- a, b, c = (int(input()) for i in range(3))
- if a + b > c and a + c > b and b + c > a:
- print('True')
- else:
- print('False')
- #задача 6
- a, b, c = (int(input()) for i in range(3))
- if a + b > c and a + c > b and b + c > a:
- if a == b == c:
- print('Равносторонний')
- elif a == b or b == c or c == a:
- print('Равнобердренный')
- else:
- print('Разностороний')
- else:
- print('Вырожденный')
- #задача 7
- def otrezki(a,b,c,d):
- k = 0
- for x in range(0,max(a,b,c,d)+1):
- if a <= x <= b and c <= x <= d:
- k += 1
- return k
- print(otrezki(3,13,7,17))
Advertisement
Add Comment
Please, Sign In to add comment