ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1917. Titan Ruins: Deadly Accuracy

Please help, i don't understand conditions
Posted by yarmet 31 Mar 2018 04:17
Hi. Can anyone help me?
5 4
4 1 4 1 2

Why answer 3 2 ?? why it isn't 3 1?
i can cast power = 2, then i'll destroy three coin (1, 1, 2) which is equal to 4, and i can survive.
But i can't cast with power 4, because then i take (4,4) = 8 damage.



Edited by author 31.03.2018 04:18

Edited by author 31.03.2018 04:18

Edited by author 31.03.2018 04:20
Re: Please help, i don't understand conditions
Posted by Oleg Baskakov 31 Mar 2018 20:01
>If we destroy k coins, the response will be k times stronger than our spell
This means, if we destroy 3 coins (1, 1, 2) with power 2, we'll take 3*2=6 damage.