


'''simple docstring'''






from __future__ import annotations

import typing
from collections.abc import Iterable

import numpy as np

__UpperCAmelCase					       =							typing.Union[Iterable[float], Iterable[int], np.ndarray]  # noqa: UP007
__UpperCAmelCase					       =							typing.Union[np.floataa, int, float]  # noqa: UP007


def       _snake_case     (  A				,					A )		->					VectorOut:
							return np.sqrt(np.sum((np.asarray(A ) - np.asarray(A )) ** 2 ) )


def       _snake_case     (  A				,					A )		->					VectorOut:
							return sum((va - va) ** 2 for va, va in zip(A				,					A ) ) ** (1 / 2)


if __name__ == "__main__":


		def       _snake_case     (  )		->					None:
									from timeit import timeit

									print('''Without Numpy''' )
									print(
									    timeit(
									        '''euclidean_distance_no_np([1, 2, 3], [4, 5, 6])'''				,					number=10000				,					globals=globals()				,					) )
									print('''With Numpy''' )
									print(
									    timeit(
									        '''euclidean_distance([1, 2, 3], [4, 5, 6])'''				,					number=10000				,					globals=globals()				,					) )






		benchmark()



'''simple docstring'''






def       _snake_case     (  A )		->					int:
							return 1 if digit in (0, 1) else (digit * factorial(digit - 1 ))


def       _snake_case     (  A )		->					bool:
							lowerCAmelCase__      =			0
							lowerCAmelCase__      =			number
							while duplicate > 0:
														lowerCAmelCase__     ,      lowerCAmelCase__      =			divmod(A				,					10 )
														fact_sum += factorial(A )
							return fact_sum == number


if __name__ == "__main__":
		print('''Program to check whether a number is a Krisnamurthy Number or not.''')
		__UpperCAmelCase					       =							int(input('''Enter number: ''').strip())
		print(
		    f"""{number} is {'' if krishnamurthy(number) else 'not '}a Krishnamurthy Number."""
		)