let the 12 balls be numbered 1,2,3,4,5,...,12tvb now,tvbnow,bttvb. j! g" l7 X6 g* `2 f" N6 D' f
weight 1234 with 56785.39.217.77:8898/ d. i( r9 d. l. t9 w5 ?# R( |6 v( m- u
case 1tvb now,tvbnow,bttvb! ]! J9 P' D! c6 h
if 1234>5678, then weight 125 with 678
4 Y( ]! Z2 n4 J; }5.39.217.77:8898if 125>678, then weight 1 with 2TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。" |! [ }2 V! x
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2+ @/ L% n/ u5 o' n2 E* Y
if 125=678, then weight 3 with 9
* b# l0 @3 ~1 H% p$ E5 dif 3=9 it is 4, else it is 3
; q/ Q" `/ g: B6 F) ctvb now,tvbnow,bttvbif 125<678, then ewight 3 with 4
1 p5 |8 _& W% z7 V! q( ptvb now,tvbnow,bttvbif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4( [$ \+ T5 Q; s
! L& y0 A. `: O$ ]- S+ e) A8 V. t
case 2
3 W* y1 q+ M7 p5 l; l6 ~3 X. S4 Urepeat above for 5678 instead of 1234 if 1234<5678
, q2 A) ~$ m t! ttvb now,tvbnow,bttvb5.39.217.77:8898- H$ X5 L. c5 o+ |& z, l
case 3tvb now,tvbnow,bttvb+ l: @; _' t% U! ?4 j) G
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explainTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。2 C7 ?9 B+ q8 ]% V( |, t4 ?
tvb now,tvbnow,bttvb. c4 F' h5 T7 }9 W: e- ]
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |