Fil de discussion دوستان لطفا برسی کنید ببینید که این اسکریپت از لحاظ الگوریتم بهینه و در چه سطحی قرار داره . برای بهبودش چه کار هایی باید… 3 messages · 19:14 –19:19 M دوستان لطفا برسی کنید ببینید که این اسکریپت از لحاظ الگوریتم بهینه و در چه سطحی قرار داره . برای بهبودش چه کار هایی باید انجام بدم ؟
19:14 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 19:14 M Afficher dans le fil Copier le lien Original 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