|

楼主 |
发表于 2025-5-16 19:13
|
显示全部楼层
while True:
try:
a = 1
b = 0
c = input('请输入一个数字:')
c = eval(c)
i=42905136518303
while i<=c:
y=abs(i*i+1)/19633
y=y**0.5
s=19633*int(y)*int(y)
s1=i*i
if int(y)==y:
if y<c and i*i-19633*y*y>=-1 :
print("s1=",s1,"s=",s)
i+=1
except:exit()
请输入一个数字:42905136518309
s1= 1840850739654303487327036416 s= 1840850739654303487327036417
请输入一个数字: |
|