let the 12 balls be numbered 1,2,3,4,5,...,120 S* I- |7 }0 ]" S
weight 1234 with 5678* q& t. X3 c8 W7 |: ]& f! _+ U
case 1, f% c0 D; ?4 h1 I! n
if 1234>5678, then weight 125 with 678
: I7 y; x, d R2 M0 C% @5.39.217.77if 125>678, then weight 1 with 2
/ n1 Z0 g' F7 w5.39.217.77if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 25.39.217.771 J2 i; |) N6 S) s8 s8 t% [
if 125=678, then weight 3 with 95.39.217.77% N: e' E+ u6 _& D1 x) h
if 3=9 it is 4, else it is 35.39.217.77; H3 x( L% u/ l" @3 i
if 125<678, then ewight 3 with 4
9 O ~9 b: R% A. F3 K' O% i* Z sif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
) P1 d( B- ?0 `7 P7 {& O0 Y
6 F8 v1 v& _! s+ v8 l公仔箱論壇case 2
6 H" L2 B% J' G' U/ J$ X2 @repeat above for 5678 instead of 1234 if 1234<5678
0 c, ^9 X) O2 dTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。+ {1 L% B( G0 Q7 }2 D, s- _/ F
case 3公仔箱論壇, }4 r, ] e" P1 |$ {# [6 O
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
3 ?& v( I. u$ s# Q$ U公仔箱論壇tvb now,tvbnow,bttvb# W( } r! m ?5 A5 n) [9 j
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |