let the 12 balls be numbered 1,2,3,4,5,...,12
' g/ r) n8 P( l! {1 n" \公仔箱論壇weight 1234 with 5678
4 Z$ i9 g2 C N; z# }公仔箱論壇case 1公仔箱論壇4 T) ~1 N/ `1 @# r3 i" ]1 [6 l
if 1234>5678, then weight 125 with 678" J4 b* n0 T7 I" A: f7 j$ g. {
if 125>678, then weight 1 with 2# Z9 g- X7 l/ W! [9 d2 F
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
' [8 }4 k3 r2 n6 ~& B& Uif 125=678, then weight 3 with 9
: N( m: p8 `2 S0 F, T7 v+ D) Iif 3=9 it is 4, else it is 36 t+ X k p. o) a$ D" T
if 125<678, then ewight 3 with 40 R- I2 ?% R/ s' H
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4os.tvboxnow.com' a. l0 o1 V$ L
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。" A# @9 U6 l. o5 Z; Q- `
case 2
2 o2 Q5 L( t+ y: drepeat above for 5678 instead of 1234 if 1234<5678
+ Y) F6 b: M9 _- }+ oos.tvboxnow.com8 z9 v7 R% ]& |! _" Q5 b) e* n
case 3
; f! e, k. S( @, htvb now,tvbnow,bttvb1234=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% N# Y8 i2 h; ~' _$ m
5 |, O6 e6 u: C# J9 [/ e公仔箱論壇[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |