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

H
Posted by SPb SU Taken: Demidov, Korystov 20 Oct 2012 14:04
p - это суммарная сила всплеска по всем заклинаниям, которую могут выдержать волшебники, или максимальная сила всплеска за одно заклинание (каждый раз одна и та же)?
Re: H
Posted by iLko 20 Oct 2012 14:29
ENGLISH, please
Re: H
Posted by UEY 20 Oct 2012 16:18
Who is know test 22????
Re: H
Posted by Bogatyr 20 Oct 2012 18:38
The question was: is the survival limit an accumulation of all previous spells, or is it just per spell?
Re: H
Posted by Barsuk Alexey [Pskov SPI Ignorami] 21 Oct 2012 14:13
Maybe in 22 test : you can survive if [count_destroyable_coins] * [power_spell] <= [you_health]. Check your code : "<=" , not "<".
Good Luck.
Re: H
Posted by Kashmir 7 Aug 2013 09:05
I don't understand. So why in the test case the coins with value 4 are not killed? What am I missing?
Re: H
Posted by Nguyen Trung Hieu 14 Jan 2014 09:37
If you use spell power 4 you will destroy two coins, so the strikes back will be 2 * 4 = 8 and you can't survive