Commit dc7441bd by BellCodeEditor

auto save

parent 370cf254
Showing with 68 additions and 9 deletions
a=[27,1,29,2,31,43]
b=len(a)
for i in range(0,b-1):
for i in range(0,b-1):
if a[i]>a[i+1]:
a[i],a[i+1]=a[i+1],a[i]
print(a)
def p(n):
if n==10:
return 1
num=(p(n+1)+1)*2
return num
p_num=p(1)
print(p_num)#2410407066388485413312943138511743903783304490674189252952062,
#print(2410407066388485413312943138511743903783304490674189252952062/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2/2**100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000/2/2/2/2/2)
username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码)
# 请用input()实现用户输入账号、密码的功能
# 如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file
import time
star=time.time()
print("开始时间:",star)
for a in range(0,1001):
for b in range(0,1001):
c=1000-a-b
if a**2+b**2==c**2:
print(a,b,c)
end=time.time()
print("结束时间:",end)
\ 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