Thursday, December 19, 2013

SPOJ 2727. Army Strength

Here is the problem statement
http://www.spoj.com/problems/ARMY/

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.


       DOWNLOAD THE FULL SOURCE CODE

No comments:

Post a Comment