Commit 46609826 by BellCodeEditor

auto save

parent f47689a4
Showing with 12 additions and 0 deletions
import time
begin=time.time()
print('计算开始,时间为',begin)
for a in range(0,1001):
for b in range(0,1001):
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()
print('计算结束,时间为',end)
f=end-begin
print('所用时间为',f)
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