let the 12 balls be numbered 1,2,3,4,5,...,12TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。' l; q/ ?) ?% c- E; b9 O( z
weight 1234 with 5678' n; k0 `. H. A8 n& g7 t
case 1
/ ]5 a8 V0 @! C+ g @5 V Z9 ]4 Z7 G! Vtvb now,tvbnow,bttvbif 1234>5678, then weight 125 with 678
5 j. T r- ~) ?公仔箱論壇if 125>678, then weight 1 with 2
( n( {- _- d+ f6 D( w! Vif 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。% B4 r8 |. i3 i4 B( ^0 N
if 125=678, then weight 3 with 9
* Q/ P6 t: g1 I1 y! M9 i4 c5.39.217.76if 3=9 it is 4, else it is 3
+ _* l' C. k$ G7 N Z' s- `if 125<678, then ewight 3 with 45.39.217.768 j8 s; ?% Y& [: W1 a, ^ D
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
6 L% j( U% J! b f. ~- lTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。
& j/ W4 t9 R0 G! d' {tvb now,tvbnow,bttvbcase 2
\* T' ~1 `+ M- D( E5.39.217.76repeat above for 5678 instead of 1234 if 1234<5678
0 N+ |: @( {+ x& P. Q. u公仔箱論壇: ` u$ e0 b3 f. D/ @
case 3
# O! a8 x# Z4 Y: F0 w公仔箱論壇1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
' i( ]; |& f2 w* @ w/ A( G* `2 z& T" F; M+ c7 T: G
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |