python_math_stat/drugoe/123.py
2023-09-26 23:36:26 +03:00

17 lines
718 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

n = input (" " )
n1= int(n)
# # P(вероятность выпадения орла или решки) = 1/2= 0.5
# # # P(1) = "вероятноcть, что решек больше у 1"
# # # P(2) = 'вероятность, что решене больше у 2'
# # # P (3) = 'равное число решек'
# # P(1) = P(2)
# Если выпадает вариант P(3), значит, чтобы при n+1 выпала решка,т.е. P=0.5
# Отсюда верно выражение P(1) + 0.5(P(3))= P(2)+ 0.5(P(3)), учитывая, что P(1) = P(2), представим их как 0 т.е вероятность равна 0.5
if n1 >= 1 and n1 <= 10**5:
print (0.5)
else:
print ()