let the 12 balls be numbered 1,2,3,4,5,...,12
! _1 m4 A- F/ v4 N- nweight 1234 with 5678tvb now,tvbnow,bttvb' }7 `4 U( i, q5 H3 m
case 1
* ]* _2 I" [" L2 Z1 F- Xif 1234>5678, then weight 125 with 678www2.tvboxnow.com9 W) J! G& |, p. c X/ E( g3 u
if 125>678, then weight 1 with 2
! L' Y3 a4 Q- d$ D. Gif 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2www2.tvboxnow.com& x5 w" B; A! c( r7 k s, I3 u
if 125=678, then weight 3 with 9
0 ]/ S; p7 p9 A/ gtvb now,tvbnow,bttvbif 3=9 it is 4, else it is 3
- C s# `6 l8 \% N( zTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 125<678, then ewight 3 with 4TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。 h n, r- B x$ O0 f: o7 p
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4公仔箱論壇3 {" z* s% x9 ?- ?; _: Z
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。3 p3 }0 I5 k/ ~7 @. i
case 2
: F |8 ?: O' b+ _; y& crepeat above for 5678 instead of 1234 if 1234<5678
/ |' R+ g/ B- C& n& ` E, mtvb now,tvbnow,bttvb
- f. B: H# d) dTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。case 3公仔箱論壇6 Y8 c* G6 I' S @
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain5 \* B0 x7 H0 O/ Q2 a
4 ~7 ~) P7 ?7 P6 s6 m/ k2 U公仔箱論壇[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |