문제
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.
https://www.acmicpc.net/problem/6778
입력
The first line contain the number of antenna that the witness claimed to have seen on the alien.
The second line contain the number of eyes seen on the alien.
출력
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.
예제
# input
4
5
# output
VladSaturnian
# input
2
3
# output
VladSaturnian
GraemeMercurian
# input
8
6
# output
문제 풀이
ant = int(input())
eye = int(input())
if ant >= 3 and eye <= 4:
print('TroyMartian')
if ant <= 6 and eye >= 2:
print('VladSaturnian')
if ant <= 2 and eye <= 3:
print('GraemeMercurian')
파이썬을 독학하시는 분들에게 도움이 되길 바라며,
혹 더 좋은 방법이 있거나 오류가 있다면 편하게 말씀 부탁드립니다.