Which Alien?
InterviewTime limit2sMemory limit512 MB
Given the number of antennae and eyes a witness saw, print the names of all alien species whose ranges match, in the order given.
- Level
Easy1 of 10
- Topics
- Implementation, Brute force, Math
- Solved
- No attempts yet
Problem
Cosmos Control has received a report of another incident. They believe that an alien has illegally entered our airspace. A witness who saw the alien has come forward to describe its appearance. Your job is to determine which alien has arrived based on the witness's description.
There are only 3 alien species that we know of, described below:
- TroyMartian: has at least 3 antennae and at most 4 eyes.
- VladSaturnian: has at most 6 antennae and at least 2 eyes.
- GraemeMercurian: has at most 2 antennae and at most 3 eyes.
Input
The first line contains the number of antennae the witness claims to have seen on the alien. The second line contains the number of eyes seen on the alien.
Output
Print the names of all aliens that could match the witness's description, one per line, in the order they are described in the problem (TroyMartian, VladSaturnian, GraemeMercurian). If no alien matches the description, print nothing.