Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1
- answer: True
- x = int(input())
- y = int(input())
- if x >= 5 and y < 25:
- print("True")
- else:
- print("False")
- #2
- x = input()
- y = input()
- if x == y:
- print('True')
- else:
- print('False')
- answer: False
- #3
- a = int(input())
- b = int(input())
- c = int(input())
- d = int(input())
- z = min(a, b, c, d)
- print(z)
- #4
- a = int(input())
- b = int(input())
- c = int(input())
- d = int(input())
- z = max(a, b, c, d)
- print(z)
- #5
- a = int(input())
- b = int(input())
- c = int(input())
- if (a > b + c) or (b > a + c) or (c > a + b):
- print('False')
- else:
- print('True')
- #6
- a = int(input())
- b = int(input())
- c = int(input())
- if a == b == c:
- print('равносторонний')
- elif a == b or a == c or b == c:
- print('равнобедренный')
- elif a + b == c or a + c == b or b + c == a:
- print ('вырожденный')
- else:
- print('разносторонний')
- #7
- a = int(input())
- b = int(input())
- c = int(input())
- d = int(input())
- m = min(a, b, c, d)
- n = max(a, b, c, d)
- if b < c or a > d:
- print(0)
- else:
- if a == m and b == n:
- print(d - c + 1)
- elif c == m and d == n:
- print(b - a + 1)
- elif c < b and a == m:
- print(b - c +1)
- elif c == m and a < d:
- print(d - a +1)
- elif d == n and b > c:
- print (b - c + 1)
- elif b == n and d > a:
- print(d - a + 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement