let the 12 balls be numbered 1,2,3,4,5,...,12
8 l6 J! L1 L) m* m# D5.39.217.76weight 1234 with 5678公仔箱論壇5 D, O5 S. L( X6 J/ T2 Z5 }& J3 a
case 1
% e# M$ u( L% y* W6 ntvb now,tvbnow,bttvbif 1234>5678, then weight 125 with 678
8 _7 k2 D f' f& g" _) ptvb now,tvbnow,bttvbif 125>678, then weight 1 with 2
1 S, o. n- c O5 [" Ctvb now,tvbnow,bttvbif 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
% N N! Y% d, k- O1 Q2 E( qtvb now,tvbnow,bttvbif 125=678, then weight 3 with 9+ X/ T" \5 ~9 d% J
if 3=9 it is 4, else it is 35.39.217.76; t. @! R, B; ]! [
if 125<678, then ewight 3 with 4
5 `5 l& b: Q0 u3 x- `* \+ y5 a5.39.217.76if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
8 A7 `- v( l; b# P0 g( s: V公仔箱論壇$ C. J* ]! L4 j% L7 C
case 2
4 V6 r% @- ]# R- ]" y( x4 |公仔箱論壇repeat above for 5678 instead of 1234 if 1234<56785.39.217.76& [$ o2 C3 n1 w
! k- L4 M% c/ R9 q8 j' h& T% w' U
case 34 b W: U& M/ P4 X7 r
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
% O" O0 s* r! N% i2 Etvb now,tvbnow,bttvb公仔箱論壇8 A* J6 x$ c, x* k" ^, X
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |