백준 24971 262144 revisited
문제 링크: https://www.acmicpc.net/problem/24971 24971번: 262144 Revisited There are $\frac{6\cdot 7}{2}=21$ contiguous subsequences in total. For example, the minimum possible final number for the contiguous subsequence $[1,3,1,2,1]$ is $5$, which can be obtained via the following sequence of operations: original -> [1,3,1,2,1] www.acmicpc.net 백준에 문제를 푼 사람이 3명 밖에 없다! usaco 정풀이랑 본질적으로는 같은데 접근 방식이 조금 ..