Thread دوستان لطفا برسی کنید ببینید که این اسکریپت از لحاظ الگوریتم بهینه و در چه سطحی قرار داره . برای بهبودش چه کار هایی باید… 3 Nachrichten · 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 Im Feed anzeigen Link kopieren Original in Telegram
Ein offener öffentlicher Feed aus dem Suchindex
ChatCrawler — „Google für das öffentliche Telegram“; wird aktualisiert, während die Community gecrawlt wird.
Zeiten in UTC.
Nur öffentliche Inhalte, offizielle Telegram-API.
Über uns ·
FAQ ·
Grenzen des Index ·
Seite entfernen ·
Katalog ·
Suche ·
So zählen wir