184
中级农民
单车变摩托 发表于 2019/12/06 09:51:45 介绍一个数学方法把,插板法: 现在有N个苹果,M个箱子,总放置方法等价于现在有M+N个苹果,M个箱子但是每个箱子必须放...
使用道具 举报
99
新农上路
110
fatalme 发表于 2019-11-8 05:19 int f(int count, int box, int max) { if(count == 0) return 1; // all count objects have been alloc ...
本版积分规则 发表回复 回帖后跳转到最后一页