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.
This is the blog of site xoptutorials.com. All the news will be posted here and on the facebook page of xoptutorials.
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment