## DMOPC '16 Contest 2 P1 - Seed Strategy

View as PDF

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

Author:
Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

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.

• commented on March 21, 2020, 5:25 p.m.

What's wrong with my solution? Everything's correct except the 9th test.

• commented on March 21, 2020, 5:39 p.m.

If 1 is 1 minute, then .3 is not 30 seconds.

• commented on Nov. 12, 2017, 7:19 a.m.

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

• commented on Nov. 12, 2017, 3:29 p.m.

Power level 2 elites will take 1 minute to defeat

• commented on Nov. 14, 2017, 9:07 a.m.

tnx bro i fixed it

• commented on Nov. 13, 2017, 2:08 p.m.

a=a+2.0?

• commented on Oct. 2, 2017, 7:36 p.m.

Typo

he calculates that he as minutes...

• commented on Oct. 3, 2017, 12:11 p.m.

Fixed

• commented on Nov. 11, 2016, 3:24 a.m.

10 minutes given, there for, Kira can continue

• commented on Nov. 11, 2016, 8:33 a.m.

Fixed.

• commented on Nov. 8, 2016, 4:45 p.m.

and 1 Power level 3 enemie which is

• commented on Nov. 8, 2016, 5:29 p.m.

Fixed, arigato gozaimasu

• commented on Nov. 8, 2016, 5:26 p.m.

Top tier right?