let the 12 balls be numbered 1,2,3,4,5,...,12
. K" ?/ n+ Y% E$ L( aweight 1234 with 5678
" [0 f& P5 j1 Rtvb now,tvbnow,bttvbcase 1tvboxnow.com* p' M/ M* P: C; ~0 S
if 1234>5678, then weight 125 with 678
4 C2 z3 H( u8 bTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 125>678, then weight 1 with 2' O! @. e0 g/ B; x
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
1 H$ n1 |' u3 N0 j/ Qtvboxnow.comif 125=678, then weight 3 with 9
, g/ `8 ^: s3 ]1 Q. c& t5 N* Zif 3=9 it is 4, else it is 3
, A" M6 S: `: J# Ftvboxnow.comif 125<678, then ewight 3 with 4
9 a. k* A" g2 c2 T& Z0 `公仔箱論壇if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。% [3 k! t7 W$ g. Y7 {
2 y7 r1 s) Z- C: a$ o" j' Q6 y
case 2TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。* b7 l* u: V. D
repeat above for 5678 instead of 1234 if 1234<5678
' [1 U+ m I0 u. W3 W/ ytvboxnow.com' l! G1 Q& I( Z8 x7 p7 D3 Q) k
case 3
( z8 B, H2 s9 e2 J$ R5 l$ \) K1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
/ r7 F7 u6 i0 b J {& |/ z& CTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。- b5 K7 J$ L) |, q7 |+ K. _; b
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |