let the 12 balls be numbered 1,2,3,4,5,...,12
) z7 n2 y# l( xweight 1234 with 5678公仔箱論壇+ P7 I0 \+ J' l6 F& v: X3 Z) q( v
case 1tvb now,tvbnow,bttvb/ x& ~, v. l5 C: A5 }
if 1234>5678, then weight 125 with 678
8 b# J' `: ?0 L6 Z公仔箱論壇if 125>678, then weight 1 with 2
0 I" o8 a' R7 P0 j7 x, M( Wif 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2 `4 f- U8 x' h6 q: t* g
if 125=678, then weight 3 with 98 Y! Z {) G/ {# H, s7 _
if 3=9 it is 4, else it is 3tvb now,tvbnow,bttvb) A) `. y3 V# @3 y" K7 s, w
if 125<678, then ewight 3 with 45.39.217.770 s( @) [+ y7 h6 U. U' R5 e( q: h7 @
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
8 }: Y7 q- n. Y% n9 ~tvb now,tvbnow,bttvb
L' s2 Y+ l7 Y( a& I. rcase 2& ~0 {& N1 \- J* w, {
repeat above for 5678 instead of 1234 if 1234<5678
# ^; `# q1 j, ^1 U0 M v; ]% w* W& l
, X* a/ w+ q3 O5 D4 r- t' p& }% Z9 Gcase 3
3 U" u4 N+ w8 K% W6 ^- ?, t公仔箱論壇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" }/ @ E! n
1 h3 ?5 b* n9 K! s9 l1 A! Atvb now,tvbnow,bttvb[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |