Français
Ouvrir dans Telegram

Fil de discussion دوستان لطفا برسی کنید ببینید که این اسکریپت از لحاظ الگوریتم بهینه و در چه سطحی قرار داره . برای بهبودش چه کار هایی باید…

3 messages · –
M
دوستان لطفا برسی کنید ببینید که این اسکریپت از لحاظ الگوریتم بهینه و در چه سطحی قرار داره . برای بهبودش چه کار هایی باید انجام بدم ؟
  1. M
    import math # vars a = 3 b = 1 c = -2 # Operator Vars D = int(b**2-4*a*c) jazrD = int(math.sqrt(D)) dobarabar = 2*a hesab1 = (-b+jazrD)/dobarabar hesab2 = (-b-jazrD)/dobarabar # Main Operation if D >= 0: if hesab1 != 0: print(hesab1) else: print( str((-b+jazrD)) + "/" + str(dobarabar)) if hesab2 != 0: print(hesab2) else: print( str((-b-jazrD)) + "/" + str(dobarabar)) # Script By Mohsen Bostan # Github : https://github.com/mohsenbostan
PPython + Linux ExpertsPython + Linux Experts@PythonLinuxExperts · groupe · Technologie
4 287membres21écrivent en 30 jours
Fil de la communauté Ouvrir dans Telegram

Un fil public ouvert issu de l'index de recherche ChatCrawler — « le Google du Telegram public » ; actualisé à mesure que la communauté est explorée. Les heures sont en UTC.

Contenu public uniquement, API officielle de Telegram. À propos · FAQ · Limites de l'index · Retirer une page · Catalogue · Recherche · Comment nous comptons