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

Error in sample
Posted by Darwin's Grove 24 Feb 2014 18:26
Sample
5 4
4 1 4 1 2
Why answer is 3 2 but not 3 1 ?
2*1+1*2 <= 4
(p = 4, p — максимальная сила всплеска, которую маги ещё могут пережить, пережить тоесть включно) ???
Re: Error in sample
Posted by Kuros 10 May 2014 20:01
To kill the weakest 3 coins with one spell it would have to have spell power 2, which means you get 3*2 = 6 > 4 damage reflected.