Problem link: https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=39 Hints DFS+DP记忆化搜索 Solution code UVa OJ 103 – Stacking Boxes3 Nov, 2019 in OJ tagged DFS / OJ / UVa OJ / 记忆化搜索 by Haar (updated on 2019-11-03)