let the 12 balls be numbered 1,2,3,4,5,...,12tvb now,tvbnow,bttvb& @: Y { t" z5 G" W
weight 1234 with 5678
4 Y7 X2 s. E3 M W& Atvb now,tvbnow,bttvbcase 1
. t: e( d: ^' N! y/ r/ j( a2 sif 1234>5678, then weight 125 with 678
- T+ p. v' m* I% i3 Wos.tvboxnow.comif 125>678, then weight 1 with 2
( A! {( R4 d/ f- ]8 w2 a+ y0 q# ]TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
9 [5 e" R- Q, P0 [0 V4 l1 N# X/ _if 125=678, then weight 3 with 9os.tvboxnow.com: R9 P6 C5 B5 z! G* a
if 3=9 it is 4, else it is 3TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。* X ^+ D0 u) a6 [3 o g
if 125<678, then ewight 3 with 4
4 h% {0 u# w4 lif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
( h$ ]2 c/ b* U5 e! itvb now,tvbnow,bttvb7 i9 X, w6 b. i3 x; r
case 2
; {! E8 N& W0 c3 hos.tvboxnow.comrepeat above for 5678 instead of 1234 if 1234<5678
, N; v0 P3 g s$ a5 y
1 d( X3 y6 t9 x7 `& W3 htvb now,tvbnow,bttvbcase 30 q1 b* K, N& }
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain1 g" q0 r& v ?
4 |/ U- @: t. J& |: K, Q[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |