let the 12 balls be numbered 1,2,3,4,5,...,12tvb now,tvbnow,bttvb8 T" [3 I- O4 g* P
weight 1234 with 5678TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。. n; u; G/ b% {* u2 J5 d
case 1
O& M6 c" ^6 U1 I2 M \公仔箱論壇if 1234>5678, then weight 125 with 678
! }6 R O8 `+ p0 cif 125>678, then weight 1 with 2
- t9 a6 p) ]/ Z( t h$ ptvboxnow.comif 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2tvboxnow.com7 H' M1 i' }# k- g3 b; D9 R) u# O) \# s
if 125=678, then weight 3 with 9- I/ f& n4 ~$ x4 N D
if 3=9 it is 4, else it is 3
- d3 R- W9 [; @0 R& I' E0 H4 Ttvboxnow.comif 125<678, then ewight 3 with 4) i) O' O$ c: _4 E
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
" e/ D7 P c/ F# u- l& M `tvb now,tvbnow,bttvb! W$ [1 T) E& I1 ]! P, b
case 2tvb now,tvbnow,bttvb) m8 E0 _) C! Q$ k+ u% j1 ~
repeat above for 5678 instead of 1234 if 1234<5678
/ u8 L4 b) h/ h+ J9 P6 n4 G; Ctvb now,tvbnow,bttvbtvboxnow.com& O7 M b8 @; ]
case 3tvboxnow.com( {" X v* @4 f N' n
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
& I7 l% R! Q. a, N, i( Q; p" K! jtvboxnow.com
^* L2 w: P _- ^, S& J7 p! Y: _2 t公仔箱論壇[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |