let the 12 balls be numbered 1,2,3,4,5,...,12tvb now,tvbnow,bttvb' N9 ~3 c# E3 f. G) {# I/ f( r; `
weight 1234 with 56785 t9 \4 o' ? O) D. N) x# g
case 1
* w9 w) K( A. F, l% Y; w公仔箱論壇if 1234>5678, then weight 125 with 678
; {) V( u0 h6 V& j公仔箱論壇if 125>678, then weight 1 with 2
; L) r5 Z* N. O2 K( ]. Cif 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2tvb now,tvbnow,bttvb: T z: {) [& I) I) Y
if 125=678, then weight 3 with 9
0 I! Z5 A. `3 U" y7 l! ]5.39.217.77if 3=9 it is 4, else it is 3
: _$ N7 O5 [8 s, y( Aif 125<678, then ewight 3 with 4
/ R7 i/ T6 ^2 ~: E$ ~公仔箱論壇if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
6 v% H$ s0 m8 ~: o$ wTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。0 v+ w- Q& M4 u, d3 j8 o
case 2( ^" `, v' ^ s4 D4 R
repeat above for 5678 instead of 1234 if 1234<56786 D, Q, y% I+ U Z
5.39.217.77" x1 i$ w* C/ x5 u8 z* l1 I; e
case 3
+ }% d2 A) ?: v1 k) I5 u r% b& l0 C1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explainTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。7 \ E: b) x$ r. [6 |& P
) g; z( ^1 ?" a: \tvb now,tvbnow,bttvb[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |