CCC '11 J1 - Which Alien?

View as PDF

Submit solution

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

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 antennae and at most 4 eyes;
  • VladSaturnian, who has at most 6 antennae and at least 2 eyes;
  • GraemeMercurian, who has at most 2 antennae and at most 3 eyes.

Input Specification

The first line will contain the number of antennae that the witness claimed to have seen on the alien.

The second line will contain 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


Comments


  • -2
    JasperX  commented on Aug. 1, 2024, 5:17 p.m.

    bruh


  • -3
    Rayane_77  commented on March 19, 2024, 9:45 a.m. edit 2

    c'est quoi le probleme ici?

    x=int(input())
    y=int(input())
    if 3<=x<=4 and y==4:
        print("TroyMartian")
    if 1<=x<=6 and 2<=y:
        print("VladSaturnian")
    if 1<=x<=2 and 1<=y<=3:
        print("GraemeMercurian")
    

  • 0
    Orca  commented on Oct. 18, 2022, 11:56 p.m. edited

    I can't get past test case 2 (everything else works), can anyone take a look at my submission and let me know if I'm missing something?


    • 10
      dnialh_  commented on Oct. 19, 2022, 12:00 a.m.

      It looks like you made a typo, see if there's a line of code that doesn't match with the others.


      • 6
        Orca  commented on Oct. 19, 2022, 12:36 a.m.

        Thank you very much, got it just a few mins later 😅


  • 7
    maxcruickshanks  commented on May 1, 2022, 2:25 a.m.

    Since the original data were weak, more data were added that include all edge cases.


  • 13
    Aetheryx_George  commented on Dec. 28, 2021, 2:16 a.m.

    I spent about 10 minutes trying to find out what was wrong with my code and it turns out that I spelled the names wrong, make sure you check the spelling of the name!!


  • -14
    Luffa5  commented on Nov. 22, 2016, 1:03 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


    • 11
      _ryan6_  commented on April 30, 2022, 6:03 a.m.

      don't use "else if" but "if"