## DMOPC '16 Contest 2 P1 - Seed Strategy

View as PDF

Points:3
Time limit:1.0s
Memory limit:64M
Author:

Problem type

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 near by, 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 amount 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.

• mrglioula
commented on Nov. 12, 2017

i need a judge here!!! my answer is correct exept the last test why why why why why :(

• Injust
commented on Nov. 12, 2017

Power level 2 elites will take 1 minute to defeat

• mrglioula
commented on Nov. 14, 2017

tnx bro i fixed it

• TypicalToxic
commented on Nov. 13, 2017

a=a+2.0?

• ChaSiu
commented on Oct. 2, 2017

Typo

he calculates that he as minutes...

• kobortor
commented on Oct. 3, 2017

Fixed

• paydayzcool
commented on Nov. 11, 2016
Spelling error

10 minutes given, there for, Kira can continue

• Kirito
commented on Nov. 11, 2016

Fixed.

• Kirito
commented on Nov. 8, 2016
Typo

and 1 Power level 3 enemie which is

• whycolt
commented on Nov. 8, 2016

Fixed, arigato gozaimasu

• whycolt
commented on Nov. 8, 2016

Top tier right?