• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

배낭문제

백준 2629 양팔저울

냅색 알고리즘을 사용하면 쉽게 풀 수 있는 문제다. choo[num] == weight dp(num - 1, weight) dp(num - 1, weight - choo[num]) dp(num - 1, weight + choo[num]) dp(num - 1, choo[num] - weight) dp(num - 1, choo[num] + weight)) 중에서 하나만 참을 반환하면 해당 추를 ...

백준DP배낭문제DP

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more