# Solution Contributions: the problem setter's solution supplies binary search, deadline counting, and priority-queue simulation. Codex (GPT-6) completed the proof, fixed feasibility boundaries and aggregate overflow, implemented the solutions, and supplied monotone buckets and verification. ## Charging jobs for a fixed power Discard devices with $a_i\ge mb_i$ : they need no charging, including every device with $b_i=0$ . Fix power $X$ . Before device $i$ receives its $j$-th charge, its total acquired energy is $E=a_i+(j-1)X$ . If $E\ge mb_i$ , it needs no more charges. Otherwise the next charge has deadline $$d=\left\lfloor E/b_i\right\rfloor.$$ By the end of minute $d$ , consumption would be $(d+1)b_i>E$ , while earlier minute ends are safe. Treat this charge as a one-minute job with deadline $d$ . Jobs may be performed early because battery capacity is unlimited. ## The deadline prefix condition Let `Deadlines[d]` count jobs with deadline exactly $d$ . Feasibility is equivalent to the following for every $t=0,\ldots,m-1$ : $$\sum_{d=0}^{t}\mathrm{Deadlines}[d]\le t+1.$$ Necessity follows from the number of available minutes. For sufficiency, execute jobs in nondecreasing deadline order. If a job at position $s$ has deadline $d