🌈 搜索
📅  最后修改于: 2022-03-11 14:46:05.887000             🧑  作者: Mango
Input: n = 4 , m = 3 S[] = {1,2,3} Output: 4 Explanation: Four Possible ways are: {1,1,1,1},{1,1,2},{2,2},{1,3}.