
"""simple docstring"""

from itertools import product






def 							A		(       snake_case   :int       ,      snake_case   :int	)   ->			list[int]:
 __UpperCamelCase       						= sides_number
 __UpperCamelCase       						= max_face_number * dice_number
 __UpperCamelCase       						= [0] * (max_total + 1)

 __UpperCamelCase       						= 1
 __UpperCamelCase       						= range(snake_case       ,      max_face_number + 1	)
 for dice_numbers in product(snake_case       ,      repeat=snake_case	):
  __UpperCamelCase       						= sum(snake_case	)
  totals_frequencies[total] += 1

 return totals_frequencies






def 							A		(       )   ->			float:
 __UpperCamelCase       						= total_frequency_distribution(
     sides_number=4       ,      dice_number=9	)
 __UpperCamelCase       						= total_frequency_distribution(
     sides_number=6       ,      dice_number=6	)

 __UpperCamelCase       						= 0
 __UpperCamelCase       						= 9
 __UpperCamelCase       						= 4 * 9
 __UpperCamelCase       						= 6
 for peter_total in range(snake_case       ,      max_peter_total + 1	):
  peter_wins_count += peter_totals_frequencies[peter_total] * sum(
      colin_totals_frequencies[min_colin_total:peter_total]	)

 __UpperCamelCase       						= (4**9) * (6**6)
 __UpperCamelCase       						= peter_wins_count / total_games_number

 __UpperCamelCase       						= round(snake_case       ,      ndigits=7	)

 return rounded_peter_win_probability


if __name__ == "__main__":
      print(f'''{solution() = }''')





"""simple docstring"""

def 							A		(       snake_case   :int       ,      snake_case   :int	)   ->			int:
 return int(input_a == input_a == 0	)






def 							A		(       )   ->			None:
 print('Truth Table of NOR Gate:'	)
 print('|   Input 1   |  Input 2  | Output |'	)
 print(f'|      0      |    0      |  {nor_gate(0       ,      0	)}     |'	)
 print(f'|      0      |    1      |  {nor_gate(0       ,      1	)}     |'	)
 print(f'|      1      |    0      |  {nor_gate(1       ,      0	)}     |'	)
 print(f'|      1      |    1      |  {nor_gate(1       ,      1	)}     |'	)


if __name__ == "__main__":
      import doctest

      doctest.testmod()
      main()



