






import unittest

from knapsack import knapsack as k


class       __lowercase      (	unittest.TestCase  ):







     '''simple docstring'''




     def 		lowerCAmelCase_     (				self       :			Any				):


         """simple docstring"""



         __A         =	0
         __A         =	[0]
         __A         =	[0]
         __A         =	len(UpperCamelCase_				)
         self.assertEqual(k.knapsack(UpperCamelCase_ ,	UpperCamelCase_ ,	UpperCamelCase_ ,	UpperCamelCase_				) ,	0				)

         __A         =	[60]
         __A         =	[10]
         __A         =	len(UpperCamelCase_				)
         self.assertEqual(k.knapsack(UpperCamelCase_ ,	UpperCamelCase_ ,	UpperCamelCase_ ,	UpperCamelCase_				) ,	0				)




     def 		lowerCAmelCase_     (				self       :			Optional[int]				):


         """simple docstring"""



         __A         =	3
         __A         =	[1, 2, 3]
         __A         =	[3, 2, 1]
         __A         =	len(UpperCamelCase_				)
         self.assertEqual(k.knapsack(UpperCamelCase_ ,	UpperCamelCase_ ,	UpperCamelCase_ ,	UpperCamelCase_				) ,	5				)





     def 		lowerCAmelCase_     (				self       :			Any				):


         """simple docstring"""



         __A         =	50
         __A         =	[60, 100, 120]
         __A         =	[10, 20, 30]
         __A         =	len(UpperCamelCase_				)
         self.assertEqual(k.knapsack(UpperCamelCase_ ,	UpperCamelCase_ ,	UpperCamelCase_ ,	UpperCamelCase_				) ,	220				)


if __name__ == "__main__":
  unittest.main()












__a      :       List[Any]				  =   8.3_1_4_4_5_9_8



def 			_SCREAMING_SNAKE_CASE						( __lowercase   :			float			,				__lowercase   :			float    )						->      float:





    """simple docstring"""

    if temperature < 0:
        raise Exception("""Temperature cannot be less than 0 K"""    )
    if molar_mass <= 0:
        raise Exception("""Molar mass cannot be less than or equal to 0 kg/mol"""    )
    else:
        return (3 * UNIVERSAL_GAS_CONSTANT * temperature / molar_mass) ** 0.5


if __name__ == "__main__":
  import doctest

  # run doctest
  doctest.testmod()

  # example
  __a      :       int				  =   300
  __a      :       int				  =   28
  __a      :       int				  =   rms_speed_of_molecule(temperature, molar_mass)
  print(f"""Vrms of Nitrogen gas at 300 K is {vrms} m/s""")




