Commit d477ae6f by BellCodeEditor

save project

parent c2200234
Showing with 8 additions and 11 deletions
import time alist=[12,15,20,17,9,13]
black=time.time() n=len(alist)
print(black) for i in range(n-1):
list1 = [] for l in range(n-1):
for a in range(0, 1000): if alist[l]>alist[l+1]:
for b in range(0, 1000): alist[l],alist[l+1]=alist[l+1],alist[l]
list1.insert(0, 0) print(alist)
diy=time.time() \ No newline at end of file
pri=diy-black
print(pri)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment