The Cosmic Era P1 - Ship

View as PDF

Submit solution

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

Author:
Problem type

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 1 and no longer than 10.

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


  • 3
    ghando  commented on Dec. 29, 2018, 12:06 a.m.

    Anyone know what Test 1 is about?


    • 6
      JustinXu  commented on Dec. 29, 2018, 12:10 a.m. edited

      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.


      • 3
        ghando  commented on Dec. 29, 2018, 12:23 a.m.

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