let the 12 balls be numbered 1,2,3,4,5,...,12
; z) s% Y6 T) D8 n2 ?5 e9 aweight 1234 with 5678TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。" I- I0 a4 ]5 a2 }9 j* g% k
case 1
' t- D& R# x+ e3 Ctvb now,tvbnow,bttvbif 1234>5678, then weight 125 with 678TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。* E7 \, y: N: b; A
if 125>678, then weight 1 with 2
4 D# b9 M5 q% ^% V8 V: wTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。6 V8 | G7 F- k; ]
if 125=678, then weight 3 with 9
7 y3 |8 P7 X `9 c公仔箱論壇if 3=9 it is 4, else it is 3公仔箱論壇; h9 b& F9 B! x7 m3 f K5 v v
if 125<678, then ewight 3 with 4 t! i+ j+ ^& F$ a+ c7 z5 u) F
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
' R' [ _$ v( z) ] A4 R$ k5.39.217.76+ j: Z3 x9 a+ l1 K$ }% r
case 21 {; H, I2 ?- n. |& {0 q
repeat above for 5678 instead of 1234 if 1234<5678
0 ^# ~: ]/ V' R, z' S: T# K" U
/ b5 E8 X5 V# ~case 3, n1 C$ D; k0 D0 y& J
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain5.39.217.769 c7 V9 h4 R, P/ [7 Q0 L
" [8 X2 ?8 q3 T+ p[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |