728x90
반응형
문제
https://www.acmicpc.net/problem/6778
두 정수 입력.
3개의 조건식을 독립적으로(별개의 제어그룹으로) 설정.
a = int(input())
b = int(input())
if a >= 3 and b <= 4:
print('TroyMartian')
if a <= 6 and b >= 2:
print('VladSaturnian')
if a <= 2 and b <= 3:
print('GraemeMercurian')
728x90
반응형
'코딩 > 공부' 카테고리의 다른 글
[Python] 백준 6810번 - ISBN (0) | 2024.01.31 |
---|---|
[Python] 백준 7891번 - Can you add this? (1) | 2024.01.31 |
[Python] 백준 6749번 - Next in line (0) | 2024.01.31 |
[Python] 백준 5522번 - 카드 게임 (0) | 2024.01.31 |
[Python] 백준 5339번 - 콜센터 (1) | 2024.01.31 |