Commit 049f0998 by BellCodeEditor

save project

parent 5b2d06ed
Showing with 11 additions and 6 deletions
for a in range(0, 1000): alist=[88,75,72,82,90]
for b in range(0, 1000):
c=1000-a-b
if a**2+b**2==c**2 and a+b+c==1000: n=len(alist)
print("这一个数字为",a,b,c)
\ No newline at end of file for i in range(0,n-1):
for j in range(0,n-1):
if alist[j]>alist[j+1]:
alist[j],alist[j+1]=alist[j+1],alist[j]
print(alist)
\ 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