【分治算法】【Python实现】整数划分问题个人主页:丷从心·系列专栏:分治算法学习指南:算法学习指南q ( n , m ) = { 1 , n = 1 , m = 1 q ( n , n ) , n < m q ( n , n − 1 ) + 1 , n = m q ( n , m − 1 ) + q ( n − m , m ) , n > m > 1 q(n , m) = \begin{cases} 1 , & n = 1 , m = 1 \\ q(n , n) , & n < m \\ q(n , n - 1) + 1 , & n = m \