let the 12 balls be numbered 1,2,3,4,5,...,12tvb now,tvbnow,bttvb* d/ L4 M; U+ F* x6 r: A9 H/ ~
weight 1234 with 5678
9 L! l2 m. q* o$ w9 m6 w5.39.217.76case 1tvb now,tvbnow,bttvb! G( ?. f0 h3 ?3 A$ T% _
if 1234>5678, then weight 125 with 678
e: M& C# o& Z' F. r7 _TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 125>678, then weight 1 with 20 B/ y4 `' R& X# g" H
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2公仔箱論壇 N& |1 U* O7 g1 z# s
if 125=678, then weight 3 with 9
+ V* o/ p* S( R$ Mtvb now,tvbnow,bttvbif 3=9 it is 4, else it is 32 x! {) ^. ~9 i1 }1 n9 a! h
if 125<678, then ewight 3 with 4
$ J8 w) W N! f" L0 k! p% r' Sif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
- W1 Q8 a1 k5 c; _0 x8 ?7 [: W0 C5.39.217.76tvb now,tvbnow,bttvb& s2 t' P# W2 ~0 s/ o0 F$ {
case 2公仔箱論壇5 M" E8 q; j, c2 t) m1 l* g
repeat above for 5678 instead of 1234 if 1234<5678
8 w) R! }0 o+ q( i4 MTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。8 i" r& d) `9 D) L
case 3公仔箱論壇! V* x# x$ ~) d) B0 j2 H
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain; h" V4 z4 I7 D0 O9 q% b
& N: r/ Z3 Y/ G: }2 w7 m4 y* x% U
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |