English
Open in Telegram

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

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 · group · Tech
4 287members21writing in 30 days
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count