A

可以发现的是,次数的下界一定是使得 \(\frac{n(n + 1)}{2} \ge X\) 最小的 \(n\)

稍加思考可以发现,只需要在某一时刻停一下一定能在下界的次数内跳到恰好 \(X\)

因此最小的时间就是使得 \(\frac{n(n + 1)}{2} \ge X\) 最小的 \(n\),解方程可得 \(n_{min} = \lceil \frac{\sqrt{8x + 1} - 1}{2} \rceil\)

B

click here to read the solution

C

click here to read the solution

D

click here to read the solution

相关文章:

  • 2021-12-14
  • 2021-06-17
  • 2021-12-04
  • 2021-12-17
  • 2022-02-05
  • 2021-05-26
  • 2021-06-11
  • 2021-11-12
猜你喜欢
  • 2022-02-09
  • 2022-12-23
  • 2022-01-25
  • 2022-01-10
  • 2021-10-15
  • 2021-06-12
  • 2021-08-03
相关资源
相似解决方案