Commit 7ecd3fa4 by BellCodeEditor

auto save

parent 4ca5fad3
Showing with 2 additions and 20 deletions
from time import time
i=input()
if i=="time_mode":
s=input("请输入时间精确度位数:")
s=int(s)
s=pow(10,s)
i=input()
i=int(i)
st=time()
print("开始运算")
for a in range(i+1):
for b in range(i+1):
for c in range(i+1):
if a+b+c==i:
print("{}+{}+{}={}".format(a,b,c,i))
et=time()
print("运算完成!")
print("总共耗时",int((et-st)*s)/s,"s")
input("按[Enter]继续...")
\ No newline at end of file
lists[j] > lists[j+1]
\ 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