


def 	a__ (							):

			for a in range(3_0_0							):
						for b in range(a + 1,			4_0_0							):
									for c in range(b + 1,			5_0_0							):
												if (a + b + c) == 1_0_0_0 and (a**2) + (b**2) == (c**2):
															return a * b * c

			return -1






def 	a__ (							):

			for a in range(3_0_0							):
						for b in range(4_0_0							):
									SCREAMING_SNAKE_CASE_		:    int 		=				1_0_0_0 - a - b
									if a < b < c and (a**2) + (b**2) == (c**2):
												return a * b * c

			return -1






def 	a__ (							):
			import timeit

			print(
			    timeit.timeit('solution()',			setup='from __main__ import solution',			number=1_0_0_0							)							)
			print(
			    timeit.timeit(
			        'solution_fast()',			setup='from __main__ import solution_fast',			number=1_0_0_0							)							)


if __name__ == "__main__":
				print(F"""{solution() = }""")









import unittest
from dataclasses import dataclass
from typing import List, Union

import numpy as np
import PIL.Image

from diffusers.utils.outputs import BaseOutput







@dataclass
class   __lowercase						(__SCREAMING_SNAKE_CASE     ):





							"""simple docstring"""







							_UpperCAmelCase						     =	42







class   __lowercase						(unittest.TestCase     ):





							"""simple docstring"""







							def 				UpperCamelCase__    (			self					):





										"""simple docstring"""




										SCREAMING_SNAKE_CASE_		:    Union[str, Any] 		=				CustomOutput(images=np.random.rand(1 ,	3 ,	4 ,	4					)					)

										# check every way of getting the attribute
										assert isinstance(outputs.images ,	np.ndarray					)
										assert outputs.images.shape == (1, 3, 4, 4)
										assert isinstance(outputs['images'] ,	np.ndarray					)
										assert outputs["images"].shape == (1, 3, 4, 4)
										assert isinstance(outputs[0] ,	np.ndarray					)
										assert outputs[0].shape == (1, 3, 4, 4)

										# test with a non-tensor attribute
										SCREAMING_SNAKE_CASE_		:    Tuple 		=				CustomOutput(images=[PIL.Image.new('RGB' ,	(4, 4)					)]					)

										# check every way of getting the attribute
										assert isinstance(outputs.images ,	lowerCAmelCase__					)
										assert isinstance(outputs.images[0] ,	PIL.Image.Image					)
										assert isinstance(outputs['images'] ,	lowerCAmelCase__					)
										assert isinstance(outputs['images'][0] ,	PIL.Image.Image					)
										assert isinstance(outputs[0] ,	lowerCAmelCase__					)
										assert isinstance(outputs[0][0] ,	PIL.Image.Image					)






							def 				UpperCamelCase__    (			self					):





										"""simple docstring"""




										SCREAMING_SNAKE_CASE_		:    Union[str, Any] 		=				CustomOutput({'images': np.random.rand(1 ,	3 ,	4 ,	4					)}					)

										# check every way of getting the attribute
										assert isinstance(outputs.images ,	np.ndarray					)
										assert outputs.images.shape == (1, 3, 4, 4)
										assert isinstance(outputs['images'] ,	np.ndarray					)
										assert outputs["images"].shape == (1, 3, 4, 4)
										assert isinstance(outputs[0] ,	np.ndarray					)
										assert outputs[0].shape == (1, 3, 4, 4)

										# test with a non-tensor attribute
										SCREAMING_SNAKE_CASE_		:    Any 		=				CustomOutput({'images': [PIL.Image.new('RGB' ,	(4, 4)					)]}					)

										# check every way of getting the attribute
										assert isinstance(outputs.images ,	lowerCAmelCase__					)
										assert isinstance(outputs.images[0] ,	PIL.Image.Image					)
										assert isinstance(outputs['images'] ,	lowerCAmelCase__					)
										assert isinstance(outputs['images'][0] ,	PIL.Image.Image					)
										assert isinstance(outputs[0] ,	lowerCAmelCase__					)
										assert isinstance(outputs[0][0] ,	PIL.Image.Image					)





