let the 12 balls be numbered 1,2,3,4,5,...,12公仔箱論壇/ Z4 c; {4 k r3 B8 g
weight 1234 with 5678公仔箱論壇7 e3 [( [8 |/ E- J, L" c# j
case 1
' k" \) t2 D% m2 _if 1234>5678, then weight 125 with 678
! v+ v! J0 k/ ^+ w" E/ _if 125>678, then weight 1 with 2tvb now,tvbnow,bttvb2 m9 g" J% o4 t4 I& s
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2tvb now,tvbnow,bttvb$ E$ I. w7 [5 j" \5 Q+ o) N
if 125=678, then weight 3 with 9
& P" ]- o3 M7 `9 F4 r! @6 m5 G公仔箱論壇if 3=9 it is 4, else it is 3TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。- z" B- g3 f0 ]2 ^
if 125<678, then ewight 3 with 4
2 v' `1 s# T- b( b [, D& |if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
6 n5 `& R' G7 a; u% b" o# etvb now,tvbnow,bttvb公仔箱論壇6 Q {1 p$ q% W8 R W( z; U
case 25.39.217.763 d7 H" S; ]1 O: d& B, s0 ~
repeat above for 5678 instead of 1234 if 1234<5678
7 X9 Z. o# Y7 P, D, ptvb now,tvbnow,bttvb, B& L% u9 Y. q' y$ I$ T7 M" K
case 3: P! u; P# }' I- A6 Y' r( a% d
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain/ `" J, c, b& c4 `3 w7 `; G: a
3 q5 i# ^4 Q/ _7 Z( x5.39.217.76[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |