赞
踩
import math n = 23333333 for i in range(1, n >> 1): j = n - i a = -(i / n) * (math.log2(i / n)) * i - (j / n) * (math.log2(j / n)) * j a = round(a, 4) if a == 11625907.5798: print(i) break
n=20230408 print(n*(n+1)>>1)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。