





"""simple docstring"""




from math import log

from scipy.constants import Boltzmann, physical_constants

lowerCamelCase_     :						List[Any]						=					3_00  # TEMPERATURE (unit = K)





def 						UpperCAmelCase__		(     _UpperCAmelCase ,					_UpperCAmelCase ,					_UpperCAmelCase ,					):






  """simple docstring"""





  if donor_conc <= 0:
    raise ValueError('Donor concentration should be positive'					)
  elif acceptor_conc <= 0:
    raise ValueError('Acceptor concentration should be positive'					)
  elif intrinsic_conc <= 0:
    raise ValueError('Intrinsic concentration should be positive'					)
  elif donor_conc <= intrinsic_conc:
    raise ValueError(
        'Donor concentration should be greater than intrinsic concentration'					)
  elif acceptor_conc <= intrinsic_conc:
    raise ValueError(
        'Acceptor concentration should be greater than intrinsic concentration'					)
  else:
    return (
        Boltzmann
        * T
        * log((donor_conc * acceptor_conc) / intrinsic_conc**2					)
        / physical_constants["electron volt"][0]
    )


if __name__ == "__main__":
   import doctest

   doctest.testmod()






"""simple docstring"""




import os

# Precomputes a list of the 100 first triangular numbers
lowerCamelCase_     :						List[str]						=					[int(0.5 * n * (n + 1)) for n in range(1, 1_01)]





def 						UpperCAmelCase__		(     ):






  """simple docstring"""





  A_  :       Union[str, Any]										=  os.path.dirname(os.path.realpath(_UpperCAmelCase					)					)
  A_  :       Tuple										=  os.path.join(_UpperCAmelCase ,					'words.txt'					)

  A_  :       List[Any]										=  ''
  with open(_UpperCAmelCase					) as f:
    A_  :       int										=  f.readline()

  A_  :       Optional[Any]										=  [word.strip('"'					) for word in words.strip('\r\n'					).split(','					)]
  A_  :       Dict										=  [
      word
      for word in [sum(ord(_UpperCAmelCase					) - 64 for x in word					) for word in words]
      if word in TRIANGULAR_NUMBERS
  ]
  return len(_UpperCAmelCase					)


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