






"""simple docstring"""


import functools




def       snake_case  (A_				:Tuple     ,      A_				:str				):







  '''simple docstring'''

  if not isinstance(a__     ,      a__				) or not all(isinstance(a__     ,      a__				) for day in days				):
    raise ValueError('The parameter days should be a list of integers'				)

  if len(a__				) != 3 or not all(isinstance(a__     ,      a__				) for cost in costs				):
    raise ValueError('The parameter costs should be a list of three integers'				)

  if len(a__				) == 0:
    return 0

  if min(a__				) <= 0:
    raise ValueError('All days elements should be greater than 0'				)

  if max(a__				) >= 3_6_6:
    raise ValueError('All days elements should be less than 366'				)

  a					:      List[Any]    =       set(a__				)

  @functools.cache
  def dynamic_programming(A_				:Union[str, Any]				) -> int:
    if index > 3_6_5:
      return 0

    if index not in days_set:
      return dynamic_programming(index + 1				)

    return min(
        costs[0] + dynamic_programming(index + 1				)     ,      costs[1] + dynamic_programming(index + 7				)     ,      costs[2] + dynamic_programming(index + 3_0				)     ,      )

  return dynamic_programming(1				)


if __name__ == "__main__":
   import doctest

   doctest.testmod()












"""simple docstring"""


def       snake_case  (A_				:str     ,      A_				:bool = False				):







  '''simple docstring'''

  if not isinstance(A_     ,      A_				):
    a					:      Union[str, Any]    =       f'''Expected string as input, found {type(A_				)}'''
    raise ValueError(A_				)
  if not isinstance(A_     ,      A_				):
    a					:      Optional[int]    =       f'''Expected boolean as use_pascal parameter, found {type(A_				)}'''
    raise ValueError(A_				)

  a					:      Tuple    =       input_str.split('_'				)

  a					:      Dict    =       0 if use_pascal else 1

  a					:      int    =       words[start_index:]

  a					:      int    =       [word[0].upper() + word[1:] for word in words_to_capitalize]

  a					:      List[str]    =       '' if use_pascal else words[0]

  return "".join([initial_word, *capitalized_words]				)


if __name__ == "__main__":
   from doctest import testmod

   testmod()




