@Lele_Programmer
我刚刚已经找到一点规律了 我直接把码放出来吧(反正我没满分) 这90分
import math as m n=int(input()) tot=0 for x in range(1,n+1): if x==1: tot+=1 continue tot+=int(m.log(x,2))+2 print(tot-int(m.log(n,2)))