P2985 [USACO10FEB] Chocolate Eating S
Description
Bessie has received N (1
Input Format
\* Line 1: Two space separated integers: N and D
\* Lines 2..N+1: Line i+1 contains a single integer: H\_i
Output Format
\* Line 1: A single integer, the highest Bessie's minimum happiness can be over the next D days
\* Lines 2..N+1: Line i+1 contains an integer that is the day on which Bessie eats chocolate i
Explanation/Hint
翻译由 DeepSeek 辅助完成。
Assisted translation by DeepSeek.