let the 12 balls be numbered 1,2,3,4,5,...,12公仔箱論壇/ _: M q2 J) {/ |
weight 1234 with 5678www3.tvboxnow.com3 H/ g- f- a. V( _3 D; E/ F
case 1
. ~2 u' t4 F% Jtvb now,tvbnow,bttvbif 1234>5678, then weight 125 with 678
# t# f" e c# ?, \3 Pif 125>678, then weight 1 with 2TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。5 s% j0 `7 ?: o# ~7 v
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2www3.tvboxnow.com9 D v. Z" w/ Z- j( U+ w/ e
if 125=678, then weight 3 with 9www3.tvboxnow.com0 Y# t( o' w f
if 3=9 it is 4, else it is 3TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。- `4 E4 L7 N, K; ^/ m5 q
if 125<678, then ewight 3 with 4公仔箱論壇0 t' w3 M" S, G: ^% u+ w& w9 }
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4公仔箱論壇! ?$ }- S5 g, s4 [4 ]
/ {, N, h' N4 Z! dcase 2
_9 R6 U4 S S# t8 s7 nrepeat above for 5678 instead of 1234 if 1234<56789 i5 x8 K$ ]1 R! t0 p% R
* I8 P2 f9 h- ^; eTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。case 3公仔箱論壇0 D5 d) M7 N( y a6 U* s( [
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain0 {; y3 H; o' w' u1 W7 q5 m
# I. G4 D V8 b; C. l! n2 jwww3.tvboxnow.com[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |