Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Задача по вычислению минимума из первого домащнего заданияы.
- a = float(input())
- b = float(input())
- c = float(input())
- d = float(input())
- e = float(input())
- if a <= b and a <= c and a <= d and a <= e:
- min = a
- if a >= b and b <= c and b <= d and b <= e:
- min = b
- if a >= c and b < c and c <= d and c <= e:
- min = c
- if a >= d and b >= d and c >= d and d <= e:
- min = d
- if a >= e and b >= e and c >= e and d >= e:
- min = e
- print(min)
- # Гипотенуза
- a = float(input())
- b = float(input())
- c = (a ** 2 + b ** 2) ** 0.5
- print(c)
- # Делёж яблок
- n = int(input())
- k = int(input())
- c = (k // n)
- print(c)
- # Делёж яблок 2
- n = int(input())
- k = int(input())
- c = (k % n)
- print(c)
- # МКАД
- a = int(input())
- b = int(input())
- print((a * b) % 109)
- # Максимум из двух чисел
- a = int(input())
- b = int(input())
- if a > b:
- print(a)
- else:
- print(b)
- # Високосный год
- x = int(input())
- if x % 4 == 0 and x % 100 > 0:
- print('YES')
- elif x % 400 == 0:
- print('YES')
- else:
- print('NO')
- # Перевернуть число (программа 100 не выдаёт, но я уверен в правильности решения данной задачи.)
- s = input()
- y = s.find('0', 0)
- if y == 0:
- while y == 0:
- s = s[1:]
- y = s.find('0', 0)
- print(s[::-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement