| let the 12 balls be numbered 1,2,3,4,5,...,12 ; ~  T* @! X. \* K: r5.39.217.77:8898weight 1234 with 5678
 ! ^' F5 ^) I- \% Ptvb now,tvbnow,bttvbcase 15.39.217.77:8898* x( H8 A* `( T& d$ R4 H9 i, ], W& U
 if 1234>5678, then weight 125 with 678
 & [0 v; \# t& H0 O. y; g公仔箱論壇if 125>678, then weight 1 with 2
 4 w  M3 A  d1 }3 K公仔箱論壇if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2( g/ c: {! [4 }8 C/ C9 @) n8 R
 if 125=678, then weight 3 with 9
 ) l& ]. }! d' L* o5 @5.39.217.77:8898if 3=9 it is 4, else it is 3
 5 T3 e: R2 p* t& ]) m6 w公仔箱論壇if 125<678, then ewight 3 with 4! p: Z- B7 a8 V, ^& A! r1 A
 if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4  i3 v. X+ h  W8 F* M  Z: W( f
 公仔箱論壇) r) h  d" ?- V& O! P
 case 2tvb now,tvbnow,bttvb( O9 A! {2 p) U
 repeat above for 5678 instead of 1234 if 1234<56783 a9 a+ {! b: E2 N4 M& h2 z
 
 " a& v& I  ?6 Y5.39.217.77:8898case 3
 b7 M) S7 V) T5.39.217.77:88981234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain公仔箱論壇5 z, H% j/ F: w, Q7 e9 t1 x
 
 9 U6 O4 P8 l9 D4 C& Y3 iTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ]
 |