let the 12 balls be numbered 1,2,3,4,5,...,12
|+ s7 i2 _4 W0 w$ I5 t) H$ v9 etvb now,tvbnow,bttvbweight 1234 with 5678
. k; F( o+ @' J' V& v# P5 I4 Rtvb now,tvbnow,bttvbcase 19 ~* B# z2 C, @* J5 c1 I
if 1234>5678, then weight 125 with 678
! U. h6 T, D5 k* Z/ Sif 125>678, then weight 1 with 2公仔箱論壇( Y8 j4 }9 Q8 E4 V9 Z
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2公仔箱論壇% _. o4 \2 K9 m( Y
if 125=678, then weight 3 with 9公仔箱論壇% s h |( M, w; I
if 3=9 it is 4, else it is 3( \' D: e% d5 v3 r
if 125<678, then ewight 3 with 4
+ N- L; i* N; R+ I0 R6 `4 ftvb now,tvbnow,bttvbif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
% d$ W( Y+ S6 L7 C; P8 D公仔箱論壇5.39.217.76! o/ R- {2 u9 R3 \$ m/ U; y) n
case 2
' `0 x) i4 O+ Yrepeat above for 5678 instead of 1234 if 1234<5678
/ g+ C+ p2 |- X6 m6 Ctvb now,tvbnow,bttvb# b' ?9 P' e. w0 g$ ]: S
case 3
s7 w/ x1 P$ o1 v公仔箱論壇1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain/ D5 L* k$ Z8 a; j/ X3 y9 l
5.39.217.76 J/ r8 J9 o" G0 q7 R
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |