let the 12 balls be numbered 1,2,3,4,5,...,12
. ^4 t! R1 d9 [9 O. r* A% }6 Stvb now,tvbnow,bttvbweight 1234 with 5678
( H3 y% | T' y( h' ?, z公仔箱論壇case 1TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。+ Y; |* U$ Z! j/ D! T0 ]$ N5 T
if 1234>5678, then weight 125 with 678
- A% g4 r0 R) g, }" P( R, {5.39.217.77if 125>678, then weight 1 with 25.39.217.77; b: A' x0 ^- M4 I5 B7 r
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 25.39.217.77# o& b$ }- k9 [- s* c
if 125=678, then weight 3 with 9tvb now,tvbnow,bttvb6 F# _+ w3 z' m) G* O8 r# ~8 z4 U8 ]- ?
if 3=9 it is 4, else it is 3, I; {' }! ? Q& r* t; {
if 125<678, then ewight 3 with 4
s1 W0 Y8 p0 Lif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
. B6 c! C9 @; X8 y* t9 E4 d. D公仔箱論壇TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。0 B: x; z9 q' _! P
case 2公仔箱論壇8 _! p! B0 F2 }8 e$ ~' p* T* Y
repeat above for 5678 instead of 1234 if 1234<5678
" {# L) O: X: cTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。$ @" C3 O- z5 M/ T1 R6 w$ S
case 3
' ~9 d0 y2 L: B* p1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
7 R% }6 {! R0 t; |5.39.217.77" f4 E2 Z2 e3 z2 w. ? Q; Q
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |