let the 12 balls be numbered 1,2,3,4,5,...,12# Y5 ]( M- u, b# O
weight 1234 with 5678
! r. `! x4 y! e# V2 P- ^& N5.39.217.77case 1
9 g* ]# K* `) o5 {0 R7 p. B4 c公仔箱論壇if 1234>5678, then weight 125 with 678
6 P2 j! [2 G3 a( H: A+ jif 125>678, then weight 1 with 2公仔箱論壇7 y$ h m, {* q- D) Q+ z) E. r" K3 I
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
+ M+ D: ]* A4 P: |/ p) {) G5.39.217.77if 125=678, then weight 3 with 9& u7 ]2 n$ O6 C% M' `! b
if 3=9 it is 4, else it is 3TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。( L) R1 P7 k1 A, Q, p" y4 Y
if 125<678, then ewight 3 with 4tvb now,tvbnow,bttvb& J/ N0 \# I1 T
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
4 e+ x1 b6 `/ `- B1 D- LTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。! G2 a, _+ y4 _/ r
case 2公仔箱論壇! V" B! z& g2 D/ P! r
repeat above for 5678 instead of 1234 if 1234<5678TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。0 `6 m; x4 B2 D$ D$ P0 Z1 M
5.39.217.77! H: t% D0 u% q! f8 z
case 3
4 l1 Q4 D* _: P y' v. i5.39.217.771234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explaintvb now,tvbnow,bttvb' x6 B8 P6 h* S' o' d- m
d( d! W& t( l# Z2 r2 ^5.39.217.77[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |