9的数和为target」的方案数,公式 max(min(target-1, 19-target), 0) 的逻辑: • 两数和为target,且均∈[1,9] → 第一个数的取值范围是 max(1, target