

'''simple docstring'''
def 	_lowerCAmelCase (						_UpperCamelCase						:					list[int]							,			_UpperCamelCase						:					list[int]    ):
     """simple docstring"""




     if not len(_UpperCamelCase    ) == len(_UpperCamelCase    ) == 3:
          raise ValueError('Please enter a valid equation.'    )
     if equationa[0] == equationa[1] == equationa[0] == equationa[1] == 0:
          raise ValueError('Both a & b of two equations can\'t be zero.'    )

     # Extract the coefficients
     _SCREAMING_SNAKE_CASE   ,						_SCREAMING_SNAKE_CASE   ,						_SCREAMING_SNAKE_CASE							   =equationa
     _SCREAMING_SNAKE_CASE   ,						_SCREAMING_SNAKE_CASE   ,						_SCREAMING_SNAKE_CASE							   =equationa

     # Calculate the determinants of the matrices
     _SCREAMING_SNAKE_CASE							   =aa * ba - aa * ba
     _SCREAMING_SNAKE_CASE							   =ca * ba - ca * ba
     _SCREAMING_SNAKE_CASE							   =aa * ca - aa * ca

     # Check if the system of linear equations has a solution (using Cramer's rule)
     if determinant == 0:
          if determinant_x == determinant_y == 0:
               raise ValueError('Infinite solutions. (Consistent system)'    )
          else:
               raise ValueError('No solution. (Inconsistent system)'    )
     else:
          if determinant_x == determinant_y == 0:
               # Trivial solution (Inconsistent system)
               return (0.0, 0.0)
          else:
               _SCREAMING_SNAKE_CASE							   =determinant_x / determinant
               _SCREAMING_SNAKE_CASE							   =determinant_y / determinant
               # Non-Trivial Solution (Consistent system)
               return (x, y)



'''simple docstring'''
def 	_lowerCAmelCase (						_UpperCamelCase						:					str    )				->      bool:
     """simple docstring"""




     _SCREAMING_SNAKE_CASE							   =0
     for ch in input_str:
          _SCREAMING_SNAKE_CASE							   =ord(_UpperCamelCase    )
          _SCREAMING_SNAKE_CASE							   =pow(2							,			_UpperCamelCase    )

          # If we already turned on bit for current character's unicode
          if bitmap >> ch_unicode & 1 == 1:
               return False
          bitmap |= ch_bit_index_on
     return True


if __name__ == "__main__":
     import doctest

     doctest.testmod()
