Ship

View as PDF

Points: 3
Time limit: 2.0s
Memory limit: 16M

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

The Archangel is being built! In order to build the Archangel, at least 1 of a number of parts are required. In the following table, each part is represented by an uppercase character.

Part Name Letter Used
Beam Weapons B
Frame (inclusive) F
Thrusters T
Launch Pad L
Command Room C

However, you appear to be missing some parts. Can you figure out which?

Input Specification

The first line contains a string containing the identifiers of all the parts you have. The length of the string will be at least and no longer than .

Output Specification

The missing parts, each on a separate line and in any order. If there are no missing parts, output NO MISSING PARTS.

Sample Input 1

BFTL

Sample Output 1

C

Sample Input 2

BFTLC

Sample Output 2

NO MISSING PARTS

Comments

• commented on Dec. 28, 2018, 7:10 p.m.

Ghando, notice that the length of the string can be more than 5 characters long. For example, BFTLCC or BFTLCBFTLC should output "NO MISSING PARTS". Quick Note: Your "user.equals(result)" line of code and the two lines in it may need to be removed or you would be outputting an empty string in these special cases.

• commented on Dec. 28, 2018, 7:23 p.m.

Ah, I looked over that, my mistakes. Thank you for your comment, it helped a ton!

• commented on Dec. 28, 2018, 7:06 p.m.

Anyone know what Test 1 is about?