


'''simple docstring'''

from __future__ import annotations





def __snake_case      (   UpperCAmelCase_		:		list[int]      ,       UpperCAmelCase_		:		int	):
	lowerCamelCase_  				=						0
	lowerCamelCase_  				=						len(UpperCAmelCase_	) - 1

	while i < j:
		if nums[i] + nums[j] == target:
			return [i, j]
		elif nums[i] + nums[j] < target:
			lowerCamelCase_  				=						i + 1
		else:
			lowerCamelCase_  				=						j - 1

	return []


if __name__ == "__main__":
					import doctest

					doctest.testmod()
					print(f'''{two_pointer([2, 7, 11, 15], 9) = }''')







'''simple docstring'''

def __snake_case      (   UpperCAmelCase_		:		int = 1000	):
 return sum(2 * a * ((a - 1) // 2) for a in range(3      ,       n + 1	)	)


if __name__ == "__main__":
     print(solution())



