let the 12 balls be numbered 1,2,3,4,5,...,12
/ Z: d7 a& a5 C" \0 U公仔箱論壇weight 1234 with 56781 z7 t* X% r) t* p
case 1
5 A9 Q+ P( W7 S5 V- f5.39.217.77if 1234>5678, then weight 125 with 678
% W+ h& T6 K% k8 U0 s+ @* Qtvb now,tvbnow,bttvbif 125>678, then weight 1 with 2
5 d+ [- U" Y3 Y6 k$ o+ DTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
$ n0 r8 X5 E9 T, Tif 125=678, then weight 3 with 9tvb now,tvbnow,bttvb. d9 R$ U0 N) _1 h! J' O
if 3=9 it is 4, else it is 3
3 j8 Z2 x, E, B- O6 I+ G" U: ?& y+ s公仔箱論壇if 125<678, then ewight 3 with 4
5 E* y3 M1 C* X" y( ptvb now,tvbnow,bttvbif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
) W. y% }. I6 c9 kTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。5.39.217.772 X; @, {& i( z1 B2 }: p! {
case 25.39.217.77: ]3 J! P: m \' n
repeat above for 5678 instead of 1234 if 1234<5678) @8 m( m6 q3 }0 y9 y5 D) o
- \2 G. W+ Z# T: P+ [+ b9 V- F2 z
case 3tvb now,tvbnow,bttvb) o# q' e/ @/ {$ Z9 h* g
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain2 |6 W* {' ~$ q1 `5 e
, w& I! `* e" j; E
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |