#P13278. 「CZOI-R4」PVP
「CZOI-R4」PVP
Description
You are engaged in a Player vs Player (PVP) battle where both you and your opponent start with health points.
You foresee that there will be battles. The -th battle is represented by an integer :
- If , you deal damage to your opponent.
- If , you receive damage.
You have items. The -th item is represented by , which increases all damage you deal by .
If a player's health drops to immediately after any battle (while being before that battle), the other player wins. You need to determine the outcome for each item usage. Each query is independent - using one item doesn't affect others.
Note: Modifications are independent - each starts from original values.
Input Format
First line: three integers , , .
Second line: integers .
Next lines: one integer each.
Output Format
lines: each line contains one string , , or indicating the outcome after applying the -th item.
6 7 2
1 -2 1 -3 1 -3
1
2
No
Yes
2 5 2
1 -1
3
5
Tie
Yes
Hint
Explanation
Sample #1 Explanation:
- After 1st item: Your health becomes after 6th battle (opponent has ) → .
- After 2nd item: Opponent's health becomes after 5th battle (you have ) → .
Sample #2 Explanation:
- After 1st item: Both have health after all battles → .
- After 2nd item: Opponent's health becomes after 2nd battle → .
Constraints
Problem uses bundled testing:
- Subtask #1 (20 pts): .
- Subtask #2 (40 pts): , all .
- Subtask #3 (40 pts): No additional constraints.
For all data:,.
京公网安备 11011102002149号