๋ฌธ์ https://www.acmicpc.net/problem/11054 11054๋ฒ: ๊ฐ์ฅ ๊ธด ๋ฐ์ดํ ๋ ๋ถ๋ถ ์์ด ์ฒซ์งธ ์ค์ ์์ด A์ ํฌ๊ธฐ N์ด ์ฃผ์ด์ง๊ณ , ๋์งธ ์ค์๋ ์์ด A๋ฅผ ์ด๋ฃจ๊ณ ์๋ Ai๊ฐ ์ฃผ์ด์ง๋ค. (1 ≤ N ≤ 1,000, 1 ≤ Ai ≤ 1,000) www.acmicpc.net ํ์ด # ๋ฐฑ์ค 11054๋ฒ ๋ฌธ์ - ๊ฐ์ฅ ๊ธด ๋ฐ์ดํ ๋ ๋ถ๋ถ ์์ด n = int(input()) arr = list(map(int, input().split())) dp_increase = [1] * (n) dp_decrease = [1] * (n) for i in range(1, n): for j in range(i): if arr[i] > arr[j] and dp_increase[i] arr[j] and dp..