




'''simple docstring'''



import os
def 			SCREAMING_SNAKE_CASE_			(							__A    :			str = "matrix.txt"  )			->			Dict:






   with open(os.path.join(os.path.dirname(__A  )	,					__A  )  ) as in_file:
      _SCREAMING_SNAKE_CASE	=				in_file.read()

   _SCREAMING_SNAKE_CASE	=				[[int(__A  ) for cell in row.split(","  )] for row in data.strip().splitlines()]
   _SCREAMING_SNAKE_CASE	=				[[0 for cell in row] for row in grid]
   _SCREAMING_SNAKE_CASE	=				len(grid[0]  )

   _SCREAMING_SNAKE_CASE	=				[[0 for i in range(__A  )] for j in range(__A  )]
   _SCREAMING_SNAKE_CASE	=				grid[0][0]
   for i in range(1	,					__A  ):
      _SCREAMING_SNAKE_CASE	=				grid[0][i] + dp[0][i - 1]
   for i in range(1	,					__A  ):
      _SCREAMING_SNAKE_CASE	=				grid[i][0] + dp[i - 1][0]

   for i in range(1	,					__A  ):
      for j in range(1	,					__A  ):
         _SCREAMING_SNAKE_CASE	=				grid[i][j] + min(dp[i - 1][j]	,					dp[i][j - 1]  )

   return dp[-1][-1]


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







'''simple docstring'''



from __future__ import annotations
def 			SCREAMING_SNAKE_CASE_			(							__A    :			float	,					__A    :			float	,					__A    :			float	,					)			->			tuple:
   if (electron_conc, hole_conc, intrinsic_conc).count(0  ) != 1:
      raise ValueError("You cannot supply more or less than 2 values"  )
   elif electron_conc < 0:
      raise ValueError("Electron concentration cannot be negative in a semiconductor"  )
   elif hole_conc < 0:
      raise ValueError("Hole concentration cannot be negative in a semiconductor"  )
   elif intrinsic_conc < 0:
      raise ValueError(
          "Intrinsic concentration cannot be negative in a semiconductor"  )
   elif electron_conc == 0:
      return (
          "electron_conc",
          intrinsic_conc**2 / hole_conc,
      )
   elif hole_conc == 0:
      return (
          "hole_conc",
          intrinsic_conc**2 / electron_conc,
      )
   elif intrinsic_conc == 0:
      return (
          "intrinsic_conc",
          (electron_conc * hole_conc) ** 0.5,
      )
   else:
      return (-1, -1)


if __name__ == "__main__":
 import doctest

 doctest.testmod()

