let the 12 balls be numbered 1,2,3,4,5,...,12
7 ?" A I: e* Q5 r5 n kTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。weight 1234 with 5678os.tvboxnow.com5 D7 ?* m/ k& m
case 1公仔箱論壇% h$ T8 z. \) @
if 1234>5678, then weight 125 with 6780 u7 _' D0 M$ x: i4 E: v1 H
if 125>678, then weight 1 with 2: S8 h6 ]# l/ C4 n* _+ }
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
/ H* _" o% b' W& _5 G) ^/ pos.tvboxnow.comif 125=678, then weight 3 with 9
: e* [ W2 R6 V6 L f7 R+ \if 3=9 it is 4, else it is 3os.tvboxnow.com2 ]: L2 J, }) M) a
if 125<678, then ewight 3 with 4tvb now,tvbnow,bttvb. I" G$ N% ^ m4 S
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4os.tvboxnow.com) N& a, M d/ `) ]: s6 T0 C
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。; {9 |) ~$ j# T# G* P! u3 C- @- @
case 2
+ @' x. s4 u6 p7 b0 I: G$ ^* sTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。repeat above for 5678 instead of 1234 if 1234<5678tvb now,tvbnow,bttvb0 w2 O, C1 Z5 S. t5 k# Y y+ H
: ?" t9 \) c. Q3 _: z
case 3
4 v6 d- O; m' ` S# S4 x+ H1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
( r% h7 g5 ]5 p4 ]! i2 P1 s; t' qTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。公仔箱論壇" o& Y3 ^0 G+ V0 m
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |