Kira is fighting the ZAFT forces in space, stopping chairman Durandal's plans to rule the Earth. Unfortunately, his mech, the Strike Freedom has sustained major damages throughout the battle. Being the genius that he is, he calculates that he has minutes left before the Strike Freedom shuts down. Even worse, there are still enemies nearby, with power levels in the range .
- Power level 1 grunts will take seconds to defeat
- Power level 2 elites will take minute to defeat
- Power level 3 aces will take minutes to defeat
Because he spent all his time calculating how much time he has left, he needs you to figure out if he has time to defeat all the enemies or to make a tactical retreat.
Input Specification
The first line of the input will contain an integer , representing the amount of time before the Strike Freedom shuts down.
The second line will contain an integer , representing the number of enemies left.
The next lines will each contain an element , representing the power level of that enemy.
Output Specification
If Kira can defeat all the enemies before his mech shuts down, output Continue
. Otherwise, output Return
.
Make sure your output matches this exactly, including capitalization.
Sample Input
10
6
1
1
2
3
1
2
Sample Output
Continue
Explanation
We know that Kira has minutes to defeat all enemies. There are 3 Power level 1 enemies which is minutes, 2 Power level 2 enemies which is minutes and 1 Power level 3 enemy which is minutes. In total, it will take minutes which is less than the minutes given, therefore, Kira can continue to fight.
Comments
What's wrong with my solution? Everything's correct except the 9th test.
If
1
is 1 minute, then.3
is not 30 seconds.i need a judge here!!! my answer is correct exept the last test why why why why why :(
tnx bro i fixed it