let the 12 balls be numbered 1,2,3,4,5,...,12
: P I3 r/ V' ]公仔箱論壇weight 1234 with 5678
8 i- x( F+ L: x. e4 Ncase 1TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。 y1 D- t$ R. ]. k
if 1234>5678, then weight 125 with 678tvb now,tvbnow,bttvb2 G7 k* U P' [% K( U9 Z0 f
if 125>678, then weight 1 with 2
' f0 z" Q0 v- [. B# e3 J9 |! hif 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
5 Y9 l" B" z4 X# f0 G) |/ `+ bif 125=678, then weight 3 with 9/ ]8 \$ d1 H8 B- p- n' U
if 3=9 it is 4, else it is 3
& P3 L. k# C" N9 ~tvb now,tvbnow,bttvbif 125<678, then ewight 3 with 4tvb now,tvbnow,bttvb6 |4 w% k9 |+ P) f( g6 B
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
" ? R* Y% O" ?5.39.217.77:8898
" A" E2 ~# |' N$ m3 W& u: `( g0 J5.39.217.77:8898case 2 y5 {5 M- ^4 q, J: j4 I
repeat above for 5678 instead of 1234 if 1234<5678' W+ q6 I5 [8 s" w! w4 w$ [, D
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。! |) n" Y4 {6 G& P
case 38 G1 B3 ?. N f4 ?
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
3 ^. @! M& M3 G* T+ N! N& B公仔箱論壇
7 _& U5 Q" K3 s B! a: z* |公仔箱論壇[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |