let the 12 balls be numbered 1,2,3,4,5,...,12 X# z E3 R5 v8 x$ ]4 |; H
weight 1234 with 5678
& @. v1 k1 k% m# zTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。case 1tvb now,tvbnow,bttvb' V2 a! J; c5 c! r
if 1234>5678, then weight 125 with 678
( l# R: X4 M- y+ l2 M1 Q% z; Btvb now,tvbnow,bttvbif 125>678, then weight 1 with 2
* h. D0 @6 `" J0 x7 v5.39.217.76if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
5 W9 V- s6 G f5 v- Y! a& G; |5.39.217.76if 125=678, then weight 3 with 9tvb now,tvbnow,bttvb* @5 l& L9 c- u# D
if 3=9 it is 4, else it is 3' O, f" b- w( M# z8 f& v
if 125<678, then ewight 3 with 4公仔箱論壇0 b' K" ~9 D) I+ A
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4公仔箱論壇/ P# |4 T( ?, N( ^/ a7 X
% ^* h4 O8 U; i! Jtvb now,tvbnow,bttvbcase 2
& V N$ ^( u8 f( B' p# ytvb now,tvbnow,bttvbrepeat above for 5678 instead of 1234 if 1234<56785.39.217.76% Q9 W- ~) G0 { ~. r
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。5 S' C* g4 F7 s. h$ ~ w1 d
case 3
1 C; Y& H2 D9 N, ]公仔箱論壇1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain+ G/ U4 n$ U- p. E& d
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。3 Y5 ]2 k( j) h p# R7 H
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |