728x90
4562번: No Brainer
For each data set, there will be exactly one line of output. This line will be "MMM BRAINS" if the number of brains the zombie eats is greater than or equal to the number of brains the zombie requires to stay alive. Otherwise, the line will be "NO BRAINS".
www.acmicpc.net
문제 풀이
x와 y가 주어지는데, x가 y보다 같거나 크다면 "MMM BRAINS"를, 아니라면 "NO BRAINS"를 출력해준다.
정답 코드
for _ in range(int(input())) :
X, Y = map(int, input().split())
if X >= Y : print("MMM BRAINS")
else : print("NO BRAINS")
728x90
'Algorithm > PS' 카테고리의 다른 글
[BOJ/백준] 4740 - 거울, 오! 거울 [python] (0) | 2023.03.10 |
---|---|
[BOJ/백준] 4635 - Speed Limit [python] (0) | 2023.03.10 |
[프로그래머스] 이진 변환 반복하기 [python] (0) | 2023.03.10 |
[BOJ/백준] 4435 - 중간계 전쟁 [python] (0) | 2023.03.08 |
[BOJ/백준] 4084 - Viva la Diferencia [python] (0) | 2023.03.08 |