problem statement
This task is a very easy one if you look carefully. I suggest looking on the explainatin of the sample test. It suggests a way of crossing a tower, He says that one guy comes and gets a shot and then the rest can pass. So, we only need to send somebody who won't die after one shot and the tower can be considered as crossed, so IN other words if tehre is a hero who can take one hit and stay alive that means that you can pass one barrier. So we ned to calculate the total numebr of shots which all the heroes can take without dying and compare it to the number of towers.
No comments:
Post a Comment