CSP/信奥赛C++刷题训练:经典二分答案例题(4):洛谷P2985: Chocolate Eating S

CSP/信奥赛C++刷题训练:经典二分答案例题(4)

[USACO10FEB] Chocolate Eating S

在这里插入图片描述

题目描述

Bessie has received N (1 <= N <= 50,000) chocolates from the bulls, but doesn’t want to eat them too quickly, so she wants to plan out her chocolate eating schedule for the next D (1 <= D <= 50,000) days in order to maximize her minimum happiness level over the set of those days.

Bessie’s happiness level is an integer that starts at 0 and halves (rounding down if necessary) over night as she sleeps. However, when she eats chocolate i, h

猜你喜欢

转载自blog.csdn.net/weixin_66461496/article/details/143198732