let the 12 balls be numbered 1,2,3,4,5,...,12
) p0 C% b7 |% ?2 W, G6 L9 Ktvb now,tvbnow,bttvbweight 1234 with 5678
, C! c/ D( N& y5.39.217.77:8898case 1公仔箱論壇) w0 |( d; `) C8 V* Q B/ J
if 1234>5678, then weight 125 with 678
! Z6 q! W, Y; |2 Hif 125>678, then weight 1 with 25.39.217.77:88985 l" r" V& \& r. D. A' y: Z
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
6 k: o/ n2 |3 G+ T b2 Y6 Hif 125=678, then weight 3 with 9tvb now,tvbnow,bttvb. g) z, u2 o0 H6 X% W6 e" q- R& H
if 3=9 it is 4, else it is 3tvb now,tvbnow,bttvb: S0 }, O1 B% ~/ s" s7 ~
if 125<678, then ewight 3 with 4
/ E1 m1 e* O1 e. F$ l8 W! p公仔箱論壇if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
! b* {- B$ z+ W! \* @3 n! M2 t5.39.217.77:88981 p: X: B/ d- a5 t- K# h
case 2
+ U. I7 s1 E, J& l' Srepeat above for 5678 instead of 1234 if 1234<5678
5 y. i: A: Y- c; L' b公仔箱論壇5.39.217.77:8898( f5 R) |; D1 c8 K1 v6 R8 n. Y4 o" g
case 3
' K' X) l1 F6 Z' G2 @6 S3 h* E1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explaintvb now,tvbnow,bttvb3 i' p& g: B/ b! M) h7 I
- Q6 }% M! }5 {7 L4 }TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |