摘要:
Description:Erin买了不少鸡蛋,她发现一天吃不完这么多,于是决定把n个同样的鸡蛋放在m个同样的篮子里,允许有的篮子空着不放,请问共有多少种不同的放法呢?注意:2,1,1和1,2,1 是同一种分法。Input第一行是测试数据的数目t(0 int egg(int m, int n);int... 阅读全文
摘要:
Description:Linda is a shopaholic. Whenever there is a discount of the kind where you can buy three items and only pay for two, she goes completely ma... 阅读全文