let the 12 balls be numbered 1,2,3,4,5,...,12tvb now,tvbnow,bttvb6 ?8 U8 u0 f' e9 v
weight 1234 with 5678
$ c* ?* x- Z( x; T/ [tvb now,tvbnow,bttvbcase 1www2.tvboxnow.com# t7 n, [( l3 M$ l1 [% j) y
if 1234>5678, then weight 125 with 678
2 f0 L/ R3 w8 j. K+ @" ]www2.tvboxnow.comif 125>678, then weight 1 with 2
( |1 k8 y/ v% @( cif 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2公仔箱論壇9 R% c5 [, ?" {) `
if 125=678, then weight 3 with 9
$ b+ y K$ b+ a9 o, Nif 3=9 it is 4, else it is 3
" ~( z: w D3 @% k6 X: [- uif 125<678, then ewight 3 with 4公仔箱論壇: c8 W5 X% J% e% H+ ~3 s0 F
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4tvb now,tvbnow,bttvb6 t; g2 g A9 [9 p9 ?2 J( ]
( c( R: v$ u9 P+ y# Y: a4 O公仔箱論壇case 2
# g/ X w. M: O/ ^" M9 L( [9 ktvb now,tvbnow,bttvbrepeat above for 5678 instead of 1234 if 1234<5678
* F9 Y* ]! x. t+ e3 ], B7 H; m) d" m+ p) P; J% o5 L
case 3
- H& O: R- J) O6 U2 ]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; k ^# E5 M& \2 Q) u* x
/ @, n8 X$ }; S* e( m3 g2 {
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |