[python] Level2_8단 변속기
https://softeer.ai/practice/info.do?idx=1&eid=408 Softeer 연습문제를 담을 Set을 선택해주세요. 취소 확인 softeer.ai 1 2 3 4 5 6 7 8 9 10 11 import sys # 입력변수를 받기 array = list(map(int,sys.stdin.readline().split())) if array == [1,2,3,4,5,6,7,8]: print("ascending") elif array == [8,7,6,5,4,3,2,1]: print("descending") else: print("mixed") Colored by Color Scripter cs
2023. 1. 1.