#P3891. [GDOI2014] 采集资源
[GDOI2014] 采集资源
Output Format
Print a single number: the minimum time when the amount of resources reaches .
Note: Unlike in Warcraft III, in Warcraft IV producing workers takes no time. Also, resource collection is not continuous. That is, if a worker’s efficiency is , they will harvest resources at time , and will not harvest resource at time .
1 1 8
1 1
4
2 1 8
1 1
2 8
3
Hint
- For of the testdata, , .
- For of the testdata, , , .
- The testdata guarantees that a solution exists.
Translated by ChatGPT 5
京公网安备 11011102002149号