
import unittest
from timeit import timeit






def 							UpperCAmelCase_		(							__SCREAMING_SNAKE_CASE			,							__SCREAMING_SNAKE_CASE							):
	lowercase					  =   first_num if first_num >= second_num else second_num
	lowercase					  =   max_num
	while (common_mult % first_num > 0) or (common_mult % second_num > 0):
		common_mult += max_num
	return common_mult






def 							UpperCAmelCase_		(							__SCREAMING_SNAKE_CASE			,							__SCREAMING_SNAKE_CASE							):
	return b if a == 0 else greatest_common_divisor(b % a			,							__SCREAMING_SNAKE_CASE							)






def 							UpperCAmelCase_		(							__SCREAMING_SNAKE_CASE			,							__SCREAMING_SNAKE_CASE							):
	return first_num // greatest_common_divisor(__SCREAMING_SNAKE_CASE			,							__SCREAMING_SNAKE_CASE							) * second_num






def 							UpperCAmelCase_		(							):
	lowercase					  =   (
	    'from __main__ import least_common_multiple_slow, least_common_multiple_fast'
	)
	print(
	    'least_common_multiple_slow():'			,							timeit('least_common_multiple_slow(1000, 999)'			,							setup=__SCREAMING_SNAKE_CASE							)			,							)
	print(
	    'least_common_multiple_fast():'			,							timeit('least_common_multiple_fast(1000, 999)'			,							setup=__SCREAMING_SNAKE_CASE							)			,							)







class 	A_       (      unittest.TestCase       ):




	'''simple docstring'''


	_UpperCamelCase					:					Any										=	(
	    (10, 20),
	    (13, 15),
	    (4, 31),
	    (10, 42),
	    (43, 34),
	    (5, 12),
	    (12, 25),
	    (10, 25),
	    (6, 9),
	)
	_UpperCamelCase					:					int										=	(20, 195, 124, 210, 1462, 60, 300, 50, 18)





	def      SCREAMING_SNAKE_CASE__						(	self	):
		for i, (first_num, second_num) in enumerate(self.test_inputs	):
			lowercase					  =   least_common_multiple_slow(snake_case		,   snake_case	)
			lowercase					  =   least_common_multiple_fast(snake_case		,   snake_case	)
			with self.subTest(i=snake_case	):
				self.assertEqual(snake_case		,   self.expected_results[i]	)
				self.assertEqual(snake_case		,   self.expected_results[i]	)


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



from string import ascii_uppercase






def 							UpperCAmelCase_		(							__SCREAMING_SNAKE_CASE			,							__SCREAMING_SNAKE_CASE			,							__SCREAMING_SNAKE_CASE = False			,							__SCREAMING_SNAKE_CASE = ascii_uppercase							):
	lowercase					  =   keyword.upper()
	lowercase					  =   plaintext.upper()
	lowercase					  =   set(__SCREAMING_SNAKE_CASE							)

	# create a list of unique characters in the keyword - their order matters
	# it determines how we will map plaintext characters to the ciphertext
	lowercase					  =   []
	for char in keyword:
		if char in alphabet_set and char not in unique_chars:
			unique_chars.append(__SCREAMING_SNAKE_CASE							)
    # the number of those unique characters will determine the number of rows
	lowercase					  =   len(__SCREAMING_SNAKE_CASE							)

	# create a shifted version of the alphabet
	lowercase					  =   unique_chars + [
	    char for char in alphabet if char not in unique_chars
	]

	# create a modified alphabet by splitting the shifted alphabet into rows
	lowercase					  =   [
	    shifted_alphabet[k : k + num_unique_chars_in_keyword]
	    for k in range(0			,							26			,							__SCREAMING_SNAKE_CASE							)
	]

	# map the alphabet characters to the modified alphabet characters
	# going 'vertically' through the modified alphabet - consider columns first
	lowercase					  =   {}
	lowercase					  =   0
	for column in range(__SCREAMING_SNAKE_CASE							):
		for row in modified_alphabet:
			# if current row (the last one) is too short, break out of loop
			if len(__SCREAMING_SNAKE_CASE							) <= column:
				break

			# map current letter to letter in modified alphabet
			lowercase					  =   row[column]
			letter_index += 1

	if verbose:
		print(__SCREAMING_SNAKE_CASE							)
	# create the encrypted text by mapping the plaintext to the modified alphabet
	return "".join(mapping[char] if char in mapping else char for char in plaintext							)


if __name__ == "__main__":
	# example use
	print(mixed_keyword('''college''', '''UNIVERSITY'''))

