Saturday, August 16, 2014

COJ 1011. Army Strength


This task is very simple. We need to understand one simple fact. No matter how many monsters there are on the field at each teams the winner team will be the team which has the strongest monster because even if the strongest monster is left alone, every step he will kill the opposing monsters until the battle is over. (If you need information about finding maximum/minimum in an array, go here.


       FULL SOURCE CODE

No comments:

Post a Comment