let the 12 balls be numbered 1,2,3,4,5,...,12TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。6 G' ~' x3 Q/ G
weight 1234 with 5678TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。% v5 [. o' r2 k: p1 {
case 12 m' D- L6 f8 \) z
if 1234>5678, then weight 125 with 6788 W/ ^" S" Y7 i3 `9 \
if 125>678, then weight 1 with 2
6 `# g* p. d9 v. U公仔箱論壇if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
0 j% j, n' \0 f* S0 i- Kos.tvboxnow.comif 125=678, then weight 3 with 92 ~4 t& ~) x; k1 Y* a
if 3=9 it is 4, else it is 3
5 S% o/ C2 w/ a5 a: [9 @% S+ ~; xif 125<678, then ewight 3 with 4
. r6 c6 }. F \+ y( Yos.tvboxnow.comif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
( S0 U( T* ?; }4 Sos.tvboxnow.comtvb now,tvbnow,bttvb5 t# ^. n- [% G/ e4 m
case 2TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。( P5 j! K3 M/ f2 H
repeat above for 5678 instead of 1234 if 1234<5678公仔箱論壇4 A6 I; L* {! Q) p" p* k
5 s0 H" e. t8 J( r' V8 e
case 3; x& Z0 H b+ {0 H2 e
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
* E1 {1 ^' W" j4 N
8 }1 v* u* Z/ x0 w3 J5 B8 s2 los.tvboxnow.com[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |