let the 12 balls be numbered 1,2,3,4,5,...,12
- p3 z; x9 [. c5 J% m6 \+ Vweight 1234 with 5678# R( v9 ~4 c! Z* z( U
case 1
; Q1 q. E' a2 R. i E公仔箱論壇if 1234>5678, then weight 125 with 678( v. e9 J0 j$ L: j' c" w
if 125>678, then weight 1 with 2
$ j+ b! Q" V$ m# f& H; p; }- STVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2tvb now,tvbnow,bttvb8 o7 u# B3 ]; j6 K& J4 y
if 125=678, then weight 3 with 9公仔箱論壇% f% W, `/ w/ y0 T# H
if 3=9 it is 4, else it is 3
' Z& ?( b. M3 S( Xtvb now,tvbnow,bttvbif 125<678, then ewight 3 with 4公仔箱論壇" ]; b# B2 l& G/ E$ s
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
9 U% M8 h2 ~# B2 I/ r N5 m* vwww3.tvboxnow.com6 X# m h) H0 k* o5 v
case 2www3.tvboxnow.com Y9 v, `* E) y8 b- g; [1 {
repeat above for 5678 instead of 1234 if 1234<5678
$ n( _. L0 Z; {4 jwww3.tvboxnow.com# ^& a f. `$ u6 ?+ W1 B
case 3www3.tvboxnow.com6 d* S, e+ N l
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
# x b% C5 ?& c& C
1 t0 V5 u( F7 v9 a/ gwww3.tvboxnow.com[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |