Re: [機統] 排列組合問題

看板Math作者 (Dark Moon Princess)時間9年前 (2016/12/06 11:32), 編輯推噓3(300)
留言3則, 2人參與, 最新討論串7/8 (看更多)
※ 引述《kiey (煉)》之銘言: : 遇到一個問題就是 : 兩位數排列 : 例如 : 00&00 : 00&01 : 00&02 : . : . : 00&99 : 01&00 : 01&01 : . : . : 01&99 : . : . : 99&99 : 兩位數可以互換 : 例如 01&02 跟 02&01 是一樣的 : 算起來是 : (100*100-100)/2 + 100 = 5050 : <不知道有沒有算錯> : 現在問題是遇到 三組 跟 四組的 就不知道怎麼算了 : 三組 : 00&00&00 ... 99&99&99 : 四組 : 00&00&00&00 ... 99&99&99&99 : 有沒有先進可以給個公式或答案呢? Sol: 順序不論 => 組合 三組:ABC, AAB, AAA C(100,3)+C(100,2)+C(100,1) =161700+4950+100 =166750# 四組:ABCD, AABC, AABB, AAAB, AAAA C(100,4)+C(100,3)+C(100,2)*2+C(100,1) =3921225+161700+4950*2+100 =4092925# -- If a card(s) or effect(s) is activating, OR a monster(s) is Summoning, OR a monster declare an attack, except this card: You must pay half of your life; Negate all the activation in this chain except this card, Summoning, OR attack, and if you do, destroy that card(s), then distroy all the on the field and in either players' hand. (This effect is treated as spell speed 3.) -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.115.189.58 ※ 文章網址: https://www.ptt.cc/bbs/Math/M.1480995162.A.847.html

12/06 11:42, , 1F
請問一下a大 C(100,2)*2 為什麼要乘2呢?
12/06 11:42, 1F

12/06 11:43, , 2F
因為AAAB和AABB都是C(100,2)
12/06 11:43, 2F

12/06 11:44, , 3F
了解了 謝謝您
12/06 11:44, 3F
文章代碼(AID): #1OHZ5QX7 (Math)
討論串 (同標題文章)
文章代碼(AID): #1OHZ5QX7 (Math)