

"""simple docstring"""




class   __lowercase      :

  def __init__(	self		:      List[Any]       ,A		:      List[Any]     ):






   '''simple docstring'''
   # we need a list not a string, so do something to change the type
   UpperCAmelCase__       :	Any        =       arr.split(""","""     )




  def  __lowercase							(	self		:      Union[str, Any]     ):






   '''simple docstring'''
   UpperCAmelCase__       :	str        =       [int(self.array[0]     )] * len(self.array     )
   UpperCAmelCase__       :	List[str]        =       [int(self.array[0]     )] * len(self.array     )
   for i in range(1       ,len(self.array     )     ):
    UpperCAmelCase__       :	Optional[Any]        =       max(
        int(self.array[i]     ) + sum_value[i - 1]       ,int(self.array[i]     )     )
    UpperCAmelCase__       :	Union[str, Any]        =       max(sum_value[i]       ,rear[i - 1]     )
   return rear[len(self.array     ) - 1]


if __name__ == "__main__":
      __UpperCAmelCase			=					input('please input some numbers:')
      __UpperCAmelCase			=					SubArray(whole_array)
      __UpperCAmelCase			=					array.solve_sub_array()
      print(('the results is:', re))










'''simple docstring'''

import qiskit







def a_     (    __UpperCAmelCase				,							__UpperCAmelCase					)				->					qiskit.result.counts.Counts:





			"""simple docstring"""







			snake_case:    Union[str, Any]      							=qiskit.Aer.get_backend('aer_simulator'					)

			# Create a Quantum Circuit acting on the q register
			snake_case:    Dict      							=qiskit.QuantumCircuit(__UpperCAmelCase				,							__UpperCAmelCase					)

			# Map the quantum measurement to the classical bits
			circuit.measure([0]				,							[0]					)

			# Execute the circuit on the simulator
			snake_case:    Dict      							=qiskit.execute(__UpperCAmelCase				,							__UpperCAmelCase				,							shots=10_00					)

			# Return the histogram data of the results of the experiment.
			return job.result().get_counts(__UpperCAmelCase					)


if __name__ == "__main__":
	print(F"""Total count for various states are: {single_qubit_measure(1, 1)}""")




