let the 12 balls be numbered 1,2,3,4,5,...,129 R$ C2 J g* z% O B
weight 1234 with 5678+ Y2 }! m* w0 Z% X. p
case 1
7 c# z$ Y8 N5 U% B. G {! ~2 Kif 1234>5678, then weight 125 with 6785.39.217.769 w* e' Z4 c1 G- ?5 F
if 125>678, then weight 1 with 2
C; B% u' c* o: v' \" RTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2tvb now,tvbnow,bttvb9 j' g/ |4 @5 J0 F2 @+ i8 G7 |8 m
if 125=678, then weight 3 with 9. F/ S2 m* ?1 R: \: x
if 3=9 it is 4, else it is 3
; K3 a3 E* u- c) m5.39.217.76if 125<678, then ewight 3 with 4
6 t' t" N! s; ^1 ]. cTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。5 T5 Z. F5 u6 V. r
" F; |4 d$ X" Q7 F, x$ k5.39.217.76case 23 q7 J- u% J# v3 @
repeat above for 5678 instead of 1234 if 1234<5678
7 `4 ~3 _" [$ c: l4 [ `; Z5.39.217.76: h/ [% d/ T; t
case 35.39.217.76" u5 W' b$ M/ O& I1 ]2 w
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
# m. _% B1 h* T3 a+ x( E- t1 ~2 c4 A. F g
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |