let the 12 balls be numbered 1,2,3,4,5,...,12
$ x, D2 e- X9 S/ {* L: @& P" qtvb now,tvbnow,bttvbweight 1234 with 5678
4 W# y0 _" n4 DTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。case 1
2 E" n, w/ a1 c7 ]" d公仔箱論壇if 1234>5678, then weight 125 with 678
3 B( t8 b! @' m' vTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 125>678, then weight 1 with 2tvb now,tvbnow,bttvb3 U; Z5 C" I s- t8 R
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
! \4 M1 I: B0 M/ P6 L' }' F公仔箱論壇if 125=678, then weight 3 with 99 y+ \+ A+ w) W
if 3=9 it is 4, else it is 3
- P& i5 \: {; k- @& X: gif 125<678, then ewight 3 with 4
# U" d6 d& q0 F5 ]( ?1 S3 B+ Y1 r, Uos.tvboxnow.comif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4% |1 |) Y% \+ Y
公仔箱論壇4 M! t! W1 B W$ N }: |
case 2TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。1 B/ J) \* z5 e9 k4 v/ D
repeat above for 5678 instead of 1234 if 1234<5678公仔箱論壇; w T# ~7 d/ o6 y9 V$ I. y1 H
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。6 V( V, ~1 L4 J
case 3
- ?- ?, o6 V7 A6 G, h1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
4 z/ ]3 X- b* d5 {TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。; E4 L, r0 T4 ]/ K5 @" a
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |