let the 12 balls be numbered 1,2,3,4,5,...,12
' n+ y5 V4 K1 k) ~. pweight 1234 with 5678
+ j0 T! W# P) i9 @% Q7 dcase 1
: G6 D( D1 \8 g0 R- Yif 1234>5678, then weight 125 with 678
1 Z6 |: L5 `7 z4 q2 ?" Rif 125>678, then weight 1 with 2TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。' M4 S9 L" z: x6 U/ }) D
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
% c- b0 ]0 a. k3 w2 U9 \) Gtvb now,tvbnow,bttvbif 125=678, then weight 3 with 9
$ Y% J- {0 k2 p. a7 ?5 N9 U/ }5.39.217.77:8898if 3=9 it is 4, else it is 3TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。/ X4 Y. v1 o4 D
if 125<678, then ewight 3 with 4
. J, U6 d* X+ w' a5 S0 F4 s, Y+ I5.39.217.77:8898if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
8 ]8 D9 s4 ^8 \) @" X公仔箱論壇
+ ^! a ]( _$ `) r) ?2 }; R* B2 d, \. ?% @5.39.217.77:8898case 2
. C4 K2 b2 V0 v% v6 X; h7 U+ Trepeat above for 5678 instead of 1234 if 1234<5678
' a! w) v' k7 \ p( k
* P: U. P( ~9 f+ hcase 35.39.217.77:8898! {( e( u( V. l, v1 T: D* q
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explaintvb now,tvbnow,bttvb! `" C8 U3 w7 j: {; {( w& o
d% {' q- X; N5.39.217.77:8898[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |