트로피 진열 백준 / 1668번 / 트로피 진열 / Python / 구 2024. 1. 8. 16:31 📚문제 📝풀이 # 1668번 트로피 진열(Bronze II) import sys from collections import deque from collections import OrderedDict arr = [] cnt_l = 0 cnt_r = 0 for _ in range(int(input())): arr.append(int(input())) left = deque(arr[:arr.index(max(arr))+1]) right = deque((arr[arr.index(max(arr)):])) # 왼쪽 시점 max_left = 0 while True: if left == deque([]): break if left[0] > max_left: cnt_l += 1 max_left = left[0] left.. 이전 1 다음 1/1