回複:有沒有好辦法?

來源: 花心鬼 2012-01-01 13:54:31 [] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (2783 bytes)

to get the number of answer. it similar to get:

±10 ±20 ±30 ±40 ±50 ±60 ±70 = ±80 

to simplify. we are doing this first:

±1±2±3±4±5±6±7=8

There will be 1 group with positive, the other group with negative.

sum of (1 to 7) is 28. and the difference of two groups is 8.

so x+y=28  and x-y =8.  

X=18 and Y=10.

To simplify, we only need to consider the sum equal to 10, the combinations are:

(1,2,3,4), (1,2,7),(1,3,6),(1,4,5),(2,3,5),(3,7),(4,6)

so 7 possiblities for the answer of 8, same thing, 7 possibility for the answer of -8. So there are 14 possible solutions.

 

 

 

所有跟帖: 

128solutions. -jinjing- 給 jinjing 發送悄悄話 (0 bytes) () 01/01/2012 postreply 14:17:17

explain? -花心鬼- 給 花心鬼 發送悄悄話 (131 bytes) () 01/01/2012 postreply 14:43:20

Please check my all solution. -jinjing- 給 jinjing 發送悄悄話 (339 bytes) () 01/02/2012 postreply 10:36:03

128*13 solutions. -花心鬼- 給 花心鬼 發送悄悄話 (1096 bytes) () 01/02/2012 postreply 12:03:07

128*12 solution -花心鬼- 給 花心鬼 發送悄悄話 (139 bytes) () 01/02/2012 postreply 12:28:37

Yes,I write down,maybe cma need. -jinjing- 給 jinjing 發送悄悄話 (239 bytes) () 01/02/2012 postreply 15:54:25

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”