문제 코드def DFS(L,sum,tsum): global result if sum+(total-tsum) c: return if L==n: if sum>result: result=sum else: DFS(L+1,sum+a[L],tsum+a[L]) DFS(L+1,sum,tsum+a[L])c , n= map(int,input().split())a=list(map(int,input().split()))total=sum(a) result=-24000000DFS(0,0,0) 설명 및 개념바둑이의 무게를 하나의 집합으로 보고 여기서 트럭에 태울 수 있는 무게를 부분집합으로 생각하고 부분집합 구하기로 문제를 푼다{81, 58, 42, 33, 61} --> { } tsum..