Advertisement
imariia777

Untitled

Jul 8th, 2023
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.38 KB | None | 0 0
  1. #1
  2. answer: True
  3. x = int(input())
  4. y = int(input())
  5. if x >= 5 and y < 25:
  6.     print("True")
  7. else:
  8.     print("False")
  9.  
  10. #2
  11. x = input()
  12. y = input()
  13. if x == y:
  14.     print('True')
  15. else:
  16.     print('False')
  17. answer: False
  18.  
  19. #3
  20. a = int(input())
  21. b = int(input())
  22. c = int(input())
  23. d = int(input())
  24. z = min(a, b, c, d)
  25. print(z)
  26.  
  27. #4
  28. a = int(input())
  29. b = int(input())
  30. c = int(input())
  31. d = int(input())
  32. z = max(a, b, c, d)
  33. print(z)
  34.  
  35. #5
  36. a = int(input())
  37. b = int(input())
  38. c = int(input())
  39.  
  40. if (a > b + c) or (b > a + c) or (c > a + b):
  41.     print('False')
  42. else:
  43.     print('True')
  44.  
  45. #6
  46. a = int(input())
  47. b = int(input())
  48. c = int(input())
  49. if a == b == c:
  50.     print('равносторонний')
  51. elif a == b or a == c or b == c:
  52.     print('равнобедренный')
  53. elif a + b == c or a + c == b or b + c == a:
  54.     print ('вырожденный')
  55. else:
  56.     print('разносторонний')
  57.  
  58. #7
  59. a = int(input())
  60. b = int(input())
  61. c = int(input())
  62. d = int(input())
  63. m = min(a, b, c, d)
  64. n = max(a, b, c, d)
  65. if b < c or a > d:
  66.     print(0)
  67. else:
  68.     if a == m and b == n:
  69.         print(d - c + 1)
  70.     elif c == m and d == n:
  71.         print(b - a + 1)
  72.     elif c < b and a == m:
  73.         print(b - c +1)
  74.     elif c == m and a < d:
  75.         print(d - a +1)
  76.     elif d == n and b > c:
  77.         print (b - c + 1)
  78.     elif b == n and d > a:
  79.         print(d - a + 1)
  80.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement