## CCC '11 J1 - Which Alien?

View as PDF

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

Problem type
##### Canadian Computing Competition: 2011 Stage 1, Junior #1

Canada Cosmos Control has received a report of another incident. They believe that an alien has illegally entered our space. A person who witnessed the appearance of the alien has come forward to describe the alien's appearance. It is your role within the CCC to determine which alien has arrived. There are only 3 alien species that we are aware of, described below:

• TroyMartian, who has at least 3 antenna and at most 4 eyes;
• VladSaturnian, who has at most 6 antenna and at least 2 eyes;
• GraemeMercurian, who has at most 2 antenna and at most 3 eyes.

#### Input Specification

The user will be prompted to enter two numbers. First, the user will be prompted to enter the number of antenna that the witness claimed to have seen on the alien. Second, the user will be prompted to enter the number of eyes seen on the alien.

#### Output Specification

The output will be the list of aliens who match the possible description given by the witness. If no aliens match the description, there is no output.

#### Sample Input 1

4
5

#### Output for Sample Input 1

VladSaturnian

#### Sample Input 2

2
3

#### Output for Sample Input 2

VladSaturnian
GraemeMercurian

#### Sample Input 3

8
6

#### Output for Sample Input 3

• commented on April 10, 2021, 6:03 p.m.

uh

• commented on June 21, 2020, 1:50 p.m.

This comment is hidden due to too much negative feedback. Click here to view it.

• commented on Jan. 16, 2020, 1:05 p.m.

This comment is hidden due to too much negative feedback. Click here to view it.

• commented on Oct. 13, 2019, 5:10 a.m.

This comment is hidden due to too much negative feedback. Click here to view it.

• commented on July 16, 2019, 6:41 p.m.

This comment is hidden due to too much negative feedback. Click here to view it.

• commented on March 28, 2018, 10:08 a.m.

"The user will be prompted to enter two numbers."

Minor point: there is no prompting required for this question. Can we remove references to prompting? This is a popular question for my younger students, and the super-diligent ones prompt the user, much to their dismay...

• commented on March 28, 2018, 4:11 p.m.

This comment is hidden due to too much negative feedback. Click here to view it.

• commented on Dec. 16, 2016, 7:09 a.m.

The order of output has to be always TroyMartian then VladSaturnian then GraemeMercurian, but it is not stated

• commented on Dec. 16, 2016, 8:33 a.m.

This comment is hidden due to too much negative feedback. Click here to view it.

• commented on Nov. 22, 2016, 8:03 a.m.

How do I make the computer read multiple if statements and then print every statement that is true, because right now the computer just prints the first one that's true.

• commented on Nov. 30, 2016, 1:05 p.m.

Just use multiple if's so don't use elif statements. Hope this helps.

• commented on Dec. 21, 2020, 7:19 p.m. edited

yeah