
"""simple docstring"""







from cva import destroyAllWindows, imread, imshow, waitKey




def       A_      (       lowercase   )  ->				Any:


     """simple docstring"""







     UpperCAmelCase_       ,UpperCAmelCase_    :     Union[str, Any]            =	img.shape[0], img.shape[1]

     # converting each pixel's color to its negative
     for i in range(lowercase   ):
          for j in range(lowercase   ):
               UpperCAmelCase_    :     Tuple            =	[255, 255, 255] - img[i][j]

     return img


if __name__ == "__main__":
       # read original image
       lowercase_         =       imread("image_data/lena.jpg", 1)

       # convert to its negative
       lowercase_         =       convert_to_negative(img)

       # show result image
       imshow("negative of original image", img)
       waitKey(0)
       destroyAllWindows()



"""simple docstring"""







def       A_      (       lowercase = 1    ,			lowercase = 1000   )  ->				int:


     """simple docstring"""







     UpperCAmelCase_    :     Tuple            =	1
     UpperCAmelCase_    :     List[str]            =	0

     for divide_by_number in range(lowercase    ,			digit + 1   ):
          UpperCAmelCase_    :     list[int]            =	[]
          UpperCAmelCase_    :     Optional[int]            =	numerator
          for _ in range(1    ,			digit + 1   ):
               if now_divide in has_been_divided:
                    if longest_list_length < len(lowercase   ):
                         UpperCAmelCase_    :     Dict            =	len(lowercase   )
                         UpperCAmelCase_    :     Optional[int]            =	divide_by_number
               else:
                    has_been_divided.append(lowercase   )
                    UpperCAmelCase_    :     List[str]            =	now_divide * 10 % divide_by_number

     return the_digit


# Tests
if __name__ == "__main__":
       import doctest

       doctest.testmod()

