햄버거 다이어트
-
[SWEA] #5215 _ 햄버거 다이어트Problem Solving/SWEA 2019. 8. 4. 10:10
[햄버거 다이어트] https://swexpertacademy.com/main/code/problem/problemDetail.do SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com dfs를 이용하여 모든 경우의 수를 모두 해보고 가장 높은 점수를 출력하면 된다. [ 소스 코드 ] #include #include using namespace std; int N, L, max_score; int ingredient[21][21] = { 0, }; int solve(int idx, int kcal, int score); int main() { int test_case; scanf("%d", &test_case); f..