RT,经检验,题解中的公式 ans=⌈log2n−2log2x−1⌉\mathrm{ans}=\lceil \log_2\dfrac{n-2}{\log_2 x-1}\rceilans=⌈log2log2x−1n−2⌉ 在代码中写成 ans=⌈log2n+2log2x−1⌉\mathrm{ans}=\lceil \log_2\dfrac{n\red{+}2}{\log_2 x-1}\rceilans=⌈log2log2x−1n+2⌉ 可以获得 AC\colorbox{green}{\color{white}{AC}}AC。希望添加HACK数据。
当让,上面的内容不重要(对我个人而言),求助这个推导哪里错了。高一数学白学了。