Commit 9f3c980a by BellCodeEditor

auto save

parent 4b0f9c41
Showing with 5 additions and 3 deletions
...@@ -5,9 +5,11 @@ print("开始的时间: ", start_time) # 程序开始的时间 ...@@ -5,9 +5,11 @@ print("开始的时间: ", start_time) # 程序开始的时间
print("距离初始时间", start_time/(365*24*60*60)) print("距离初始时间", start_time/(365*24*60*60))
list1 = [] list1 = []
for a in range(0, 1000): for a in range(0, 1001):
for b in range(0, 1000): for b in range(0, 1001):
list1.insert(0,0) for c in range(0,1001):
if a**2 + b**2 == c**2 and a+b+c == 1000:
print("a, b ,c的值分别为:", a, b, c)
end_time = time.time() end_time = time.time()
......
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