let the 12 balls be numbered 1,2,3,4,5,...,12
$ T0 i! z: X- j8 m' s" F& ^' Oos.tvboxnow.comweight 1234 with 5678tvb now,tvbnow,bttvb9 Z! E% o: @% L3 _2 Q5 P$ I
case 1
2 E6 t) I. E7 F7 O9 l/ Zif 1234>5678, then weight 125 with 678
6 Y' Q+ q7 g, j$ @9 s* T4 eif 125>678, then weight 1 with 2
+ m2 v* o. [" A0 j* u- f% O g& P5 Kif 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
: @. S- |7 p5 xos.tvboxnow.comif 125=678, then weight 3 with 9TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。1 q8 l" h5 c0 H# R1 r8 s
if 3=9 it is 4, else it is 3+ Q7 X3 }3 \+ W! P, g
if 125<678, then ewight 3 with 4% \# Z( p4 a% M5 w+ }
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。3 e5 ?" z) O! O$ ~ z
. _1 n' t& ~* t W2 `, qtvb now,tvbnow,bttvbcase 2
: S5 z' g" Z" J( ~ E+ Arepeat above for 5678 instead of 1234 if 1234<5678
; x5 F* C* Q- u2 n* etvb now,tvbnow,bttvbTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。% [$ E1 P& S, u$ a0 F
case 3
) C" }/ g' q" i Q6 u) ]1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
1 n/ V) ~7 L8 M1 yTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。
2 h9 s' W7 L9 P. R) xtvb now,tvbnow,bttvb[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |