There are a total of 3 questions in this written test, with a time limit of 120 minutes, the core code mode, easy~mid difficulty, and ak smoothly within 80 minutes
first question
Title meaning
The two characters conduct PK round by round, and calculate the result of PK.
Description of the attributes of the role:
X: upper limit of blood volume (also the initial value)
Y: Character attack power.
Z: Attack CD, after each attack, wait for Z rounds before attacking the next time. Z=0 means attack every turn.
W: Restore HP every round, and the restored HP cannot exceed the upper limit.
Combat calculations:
Each round first calculates the recovery HP before attacking.
During the PK process, if the blood volume is less than or equal to 0, it means that the character is defeated (if the opponent's blood is greater than 0, he wins).