呃……还没开始讨论咩 借宝地问个问题…… 第96题有 w个workers, each is sent to one of three departments. If w is divided by 3, the remainder is 1. 问how to distribute the workers to the three departments? (提供者ID:jacinth17。原文:答案选 (w-1)/3、(w-1)/3、(w+2)/3) 同狗主 是什么呀?从问题到答案一头雾水……………… -- by 会员 Danby (2012/4/9 0:14:22)
因为需要是整数个员工,所以只能这么求啊。不是你所想的排列组合,就是一个简单数学平均数思想。。。嗯嗯~~~先求平均数 (W-1)/3,在把一个余数加上去(W-1)/3+1=(W+2)/3。。。就是这么球的吧。。。 -- by 会员 xiaomei12 (2012/4/9 9:44:07)
万分感谢回答~~!虽然还是不很懂…… 不是只有W个人嘛,怎么凭空再加两个人(W+2)去distribute呢? -- by 会员 Danby (2012/4/9 10:58:37)
假设总共是7个人,A组3个,B组3个,C组4个 那不就是(7-1)/3,(7-1)/3,(7+2)/3咩 -- by 会员 qq341163712 (2012/4/9 11:03:01)
啊!是这样!太感谢了~~! 哎……怪不得我数学从没超过46……………… |