题目大意: Adilbek有一个特殊项目,他需要运行这个项目得到结果. 但是这个项目直接运行需要消耗d天时间. 他也可以选择优化程序以减少程序运行消耗时间. 假设他用了x天优化程序,那么最后运行程序只需要消耗天的时间(括号指向上取整). 那么总共需要消耗的天数是. 问,他能不能在n天内得到结果? 解题思路: 问能不能在n天内得到结果,只需要求出最少需要的天数与n对比即可. 可得到 那么总天数为 当且仅当 时成立. 所以 又因为x必为整数 所以x取上式向下取整后代入公式,再取向下取整+1代入公式,…