let the 12 balls be numbered 1,2,3,4,5,...,12
+ }" G. i# `8 d0 X0 k! q6 G3 D' v0 _5.39.217.77weight 1234 with 5678- {4 t/ [( q6 p% N# M
case 15.39.217.77' @ X# H' A( r5 s- f% J, Z
if 1234>5678, then weight 125 with 678
: b' K( A& Y3 D) ?' RTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 125>678, then weight 1 with 27 f% I6 N/ O& R0 I6 O, r
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2公仔箱論壇& i- X V( u) K7 x* E0 ^
if 125=678, then weight 3 with 9TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。. d2 G9 ^" t$ J! p9 O
if 3=9 it is 4, else it is 3
$ s* E4 O2 p4 w: \5.39.217.77if 125<678, then ewight 3 with 49 i$ X& c! M! N7 M- L
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4' d+ k/ F8 }; x
* G' ]6 L- I6 h# w4 ~2 Scase 2
' D" H9 t& m( X9 T# b7 c: l- M公仔箱論壇repeat above for 5678 instead of 1234 if 1234<5678
, V; [( {. E$ a/ E# b; E公仔箱論壇tvb now,tvbnow,bttvb4 \7 Z% s7 S8 A& J8 e a
case 31 C: o K6 r! w- E& K }( O7 o
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain5.39.217.77/ W7 e5 `% Z0 w, u' j
& U+ ]& ]4 s8 I+ D[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |