Zoya has developed a new game called Zombie World. The objective of the game is to kill all zombies in given amount of time. More formally,
 · N represents the total number of zombies in the current level
 · T represents the maximum time allowed for the current level
 · P represents the initial energy level a player starts with
 · Ei defines the energy of the i-th zombie
 · D defines the minimum energy the player needs, to advance to the next level
When a player energy is greater than or equal to the i-th zombie's energy, the player wins. Upon winning, the player will be awarded with an additional energy equal to the difference between current zombie energy and the player energy.
One unit of time will be taken to complete the fight with a single zombie.
Rules of the game:-
 · At any given time, a player can fight with only one zombie
 · Player is allowed to choose any one zombie to fight with.
Dear keril. Questions in this section are answered for free. We can't
fulfill them all and there is no guarantee of answering certain
question but we are doing our best. And if answer is published it
means it was attentively checked by experts. You can try it yourself
by publishing your question. Although if you have serious assignment
that requires large amount of work and hence cannot be done for free
you can submit it as assignment and our experts will surely assist you
keril
25.09.14, 11:02
give logic related Defination
Leave a comment
Thank you! Your comments have been successfully added. However, they need to be checked by the moderator before being published.
Comments
Dear keril. Questions in this section are answered for free. We can't fulfill them all and there is no guarantee of answering certain question but we are doing our best. And if answer is published it means it was attentively checked by experts. You can try it yourself by publishing your question. Although if you have serious assignment that requires large amount of work and hence cannot be done for free you can submit it as assignment and our experts will surely assist you
give logic related Defination
Leave a comment