let the 12 balls be numbered 1,2,3,4,5,...,12
7 b F- c2 R! I$ O$ y' PTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。weight 1234 with 56785.39.217.77:88985 M' ]) S# ]/ M' R4 a1 }$ z. |$ c
case 1
9 C3 J% Z0 S& @4 ~4 d9 ^3 [7 gif 1234>5678, then weight 125 with 678/ a6 P/ ] A! ?! ^1 f; H( `
if 125>678, then weight 1 with 2
, {, I# D4 ^" X8 D# H0 v9 t2 o$ y5.39.217.77:8898if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2tvb now,tvbnow,bttvb3 ]/ q3 j' D# Y4 m @
if 125=678, then weight 3 with 9" ~. u( H/ n/ b( Y) Q/ D% C3 J
if 3=9 it is 4, else it is 34 u! N( ^. d: r! A- n; v2 x3 u
if 125<678, then ewight 3 with 4tvb now,tvbnow,bttvb' [! H6 `& e9 O7 ]- K. }; Q% W
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 45.39.217.77:8898; r0 {2 y f/ D. ^
5.39.217.77:8898$ H% V3 o2 c, l* s- ~, I
case 2tvb now,tvbnow,bttvb) c6 p- ^/ ^$ w0 q2 y
repeat above for 5678 instead of 1234 if 1234<5678公仔箱論壇8 D: s% g) f5 c' G E8 Y0 Q
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。9 {' Z, \4 g3 q: H* @
case 3公仔箱論壇. d6 _0 l1 f4 y
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain5.39.217.77:8898. F- [- e# t* L; S" B) @1 ?
公仔箱論壇 H$ R- P. V9 }4 c: q: Q7 t
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |