🗒️파이썬 코드 풀이import syssys.setrecursionlimit(10**6)input = sys.stdin.readlineN = int(input())lst = list(map(int, input().split()))visited = [0] * Nmx = -1e10def dfs(n, rs): global mx if n >= N: sum = 0 for i in range(N - 1): sum += abs(rs[i] - rs[i + 1]) mx = max(mx, sum) return for i in range(N): if not (visited[i]): visited[i] = ..