let the 12 balls be numbered 1,2,3,4,5,...,12
5 B6 K2 v0 {# G: @9 H/ [TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。weight 1234 with 5678TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。# u. C5 V+ B" z' v& b
case 1tvb now,tvbnow,bttvb5 `& {( w- z9 a
if 1234>5678, then weight 125 with 678公仔箱論壇1 V' i8 h4 [2 ?9 J% a
if 125>678, then weight 1 with 2tvb now,tvbnow,bttvb5 U: v$ r% e7 `1 }" m5 e8 d
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2公仔箱論壇6 K" L( `8 l. v, o7 a) K
if 125=678, then weight 3 with 9
3 u3 P" X9 n y! Zif 3=9 it is 4, else it is 3
1 r; m( B& x8 ]www2.tvboxnow.comif 125<678, then ewight 3 with 4TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。7 L( ? i; k) I
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
" I7 H9 ^2 Q( k0 k. ]/ [$ q i) {" Xtvb now,tvbnow,bttvb
! g# G9 _$ {: i; |1 a. ]& Qcase 2; k% N* {+ M! N2 F/ ?% R: r; G
repeat above for 5678 instead of 1234 if 1234<5678tvb now,tvbnow,bttvb7 w+ m& ~, R* b5 x/ v4 A. p% f" J
tvb now,tvbnow,bttvb4 y' f3 M( y7 ~* C% z! x
case 3TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。! Q- ~# N6 a; u1 A4 d, q
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain公仔箱論壇0 h* A' M$ G) S2 }: k# y
# b! R) a0 C6 a% z
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |