반응형
문제 설명
https://www.acmicpc.net/problem/4589
https://www.acmicpc.net/board/view/91873
제출한 코드
print("Gnomes:")
num = int(input())
for i in range(num) :
lst = list(map(int, input().split()))
if (lst[2] - lst[1] >= 0 and lst[1] - lst[0] >= 0) or (lst[2] - lst[1] < 0 and lst[1] - lst[0] < 0) :
print("Ordered")
else :
print("Unordered")
결과
후기
반응형
'BQJ 백준 > python' 카테고리의 다른 글
[Python/파이썬] 백준 8932번: 7종 경기 (0) | 2024.06.08 |
---|---|
[Python/파이썬] 백준 1152번: 단어의 개수 (0) | 2024.05.26 |
[Python/파이썬] 백준 4562번: No Brainer (무뇌) (0) | 2024.05.25 |
[Python/파이썬] 백준 1032번: 명령 프롬프트 (0) | 2024.05.24 |
[Python/파이썬] 백준 1008번: A/B (0) | 2024.05.24 |