let the 12 balls be numbered 1,2,3,4,5,...,12www2.tvboxnow.com* v$ k2 _- N- L# @: j" V* |
weight 1234 with 5678
9 g2 {; @2 W0 L1 ycase 1
6 _" j$ @2 A1 }0 p! O% L XTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 1234>5678, then weight 125 with 678tvb now,tvbnow,bttvb! }1 g, F! B) R1 u y
if 125>678, then weight 1 with 26 C0 ]' ~% ^4 @; \8 w
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
2 [& n9 s# `5 ?+ U' q* Awww2.tvboxnow.comif 125=678, then weight 3 with 9
$ f$ D Y6 {3 ?0 V7 h7 Jtvb now,tvbnow,bttvbif 3=9 it is 4, else it is 3TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。$ ]. W) l- o' y$ h/ S k
if 125<678, then ewight 3 with 4
3 A \; s! D" w- Y- t5 Fif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
) ~+ D7 `$ b1 e- m2 x$ T4 S. g. CTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。tvb now,tvbnow,bttvb M; {( k6 f# O- Y; `2 E
case 2
* B, ]( k% g) v# \' H8 D3 {1 Zrepeat above for 5678 instead of 1234 if 1234<5678www2.tvboxnow.com9 h, {2 Q6 P' c/ {" ]# M
2 [0 G S/ ?5 e5 n: ^- N: n* Wcase 3tvb now,tvbnow,bttvb: @0 {8 r8 j4 H( i' T
1234=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,bttvb0 N3 W2 E1 R# u: |7 {( Z. A4 {2 R9 b
. |( a" Y! A% Y5 C
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |