백준 / 2529번 부등호 - 순열 / Python 파이썬
·
coding test - python/백준
*문제 출처는 백준에 있습니다.문제 제목: 2529번 부등호문제 사이트: https://www.acmicpc.net/problem/2529나의 풀이a = int(input())arr = list(input().split())max_ = '-1'min_ = '9999999999999'visited = [False] * 10lst = [i for i in range(10)]def calculaion(lst): idx = 0 for i in range(1,len(lst)): if arr[idx] == '' and int(lst[i - 1]) > int(lst[i]): idx += 1 continue else: ret..