#P2006. 赵神牛的游戏
赵神牛的游戏
Description
In DNF, Zhao Shenniu has a "Dizaozhe" character. He has a total of mana points and there are skills. Each skill costs mana and deals damage. The boss has health points. Please determine which skill he should cast to kill the boss.
Of course, Zhao Shenniu is not very skilled; in one game he only uses one skill, but any chosen skill can be cast an unlimited number of times.
Input Format
The first line contains three integers, representing .
Then follow lines. The -th line contains two integers: the mana cost and the damage .
Output Format
Output a single line: the indices of the skills that can kill the boss. If there are multiple, output them in increasing order, separated by a single space. If no skill can kill the boss, output -1.
100 3 5000
20 1000
90 1
110 10000
1
50 4 10
60 100
70 1000
80 1000
90 0
-1
Hint
Constraints
For all test points, it holds that:
- .
- .
- .
Translated by ChatGPT 5
京公网安备 11011102002149号