[Beakjoon] 7579. 앱
·
코딩테스트
🔗 Problem Linkhttps://www.acmicpc.net/problem/7579❔Thinking최소한의 비용으로 M 메모리 만큼을 확보해야 한다 => M 메모리가 확보되었을 경우 중, 최소 비용을 찾는다60의 메모리를 3+3과 0+4로 만들 수 있기 때문에, 무조건 적은 비용으로 계산해나가는 방법을 사용할 수 없다.💻Solutionimport sysinput = sys.stdin.readlineN, M = map(int, input().split())Ms = list(map(int, input().split()))Cs = list(map(int, input().split()))datas = [[m,c] for m,c in zip(Ms, Cs)]answer = 10001volume = sum..