let the 12 balls be numbered 1,2,3,4,5,...,12tvb now,tvbnow,bttvb+ \8 ~8 U/ {/ p4 V1 ]" W
weight 1234 with 5678www3.tvboxnow.com1 [# p1 s' k J6 n5 U; ]- c
case 1
. t0 d# ~& a0 [4 T' B! A8 l+ Rif 1234>5678, then weight 125 with 678
5 S' v& f0 D( I/ U$ R6 u; W! n5 awww3.tvboxnow.comif 125>678, then weight 1 with 26 o6 F5 _7 p1 S l. ~& E
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
1 {9 X. V( n5 e0 l) }6 Mif 125=678, then weight 3 with 9
" {3 g4 j; U- f2 d. W$ m @* Nwww3.tvboxnow.comif 3=9 it is 4, else it is 3/ E' T/ D* R9 Y% `- r) \! V2 b
if 125<678, then ewight 3 with 4
& m" f2 x/ q/ X" {9 F2 D2 m" Dtvb now,tvbnow,bttvbif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4www3.tvboxnow.com+ x6 y4 n. \6 y* K; |, U) o5 p
公仔箱論壇+ x2 \+ p! k2 d% b+ C5 N/ W% _. ]
case 2
! D" |2 c; d& D8 @repeat above for 5678 instead of 1234 if 1234<5678公仔箱論壇' V% R4 A1 e8 e/ C
( x% x/ u% c3 P( Y: f, i/ l# S/ a: d4 vTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。case 3tvb now,tvbnow,bttvb& `; P( P0 b5 a- D
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explainwww3.tvboxnow.com$ `! B+ b/ n) x
9 M d* \% r; M/ K- m$ J[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |