let the 12 balls be numbered 1,2,3,4,5,...,12
4 |! O$ d* W1 T5.39.217.77:8898weight 1234 with 5678tvb now,tvbnow,bttvb/ }$ c2 E5 v0 n
case 1tvb now,tvbnow,bttvb1 g/ Z# M( s, E6 i
if 1234>5678, then weight 125 with 678tvb now,tvbnow,bttvb: t4 p: z1 ^, A
if 125>678, then weight 1 with 2. M( P) j7 K7 \$ n& C: b+ P
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。( x9 ^$ Q1 d/ @: g/ |* @! r4 V" S
if 125=678, then weight 3 with 9
2 e1 {: c4 Y, }# C. J. \! Z2 A公仔箱論壇if 3=9 it is 4, else it is 3tvb now,tvbnow,bttvb2 p w) E# w' ]0 c
if 125<678, then ewight 3 with 4
, F$ l' a$ D2 ^: l+ J' Dif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4tvb now,tvbnow,bttvb$ q+ _' E d2 B" [& I. h
# S6 u& V7 u6 j- o% V; j9 i- j; Hcase 2
' z( Q1 y2 ^. O! m1 Z. M公仔箱論壇repeat above for 5678 instead of 1234 if 1234<5678tvb now,tvbnow,bttvb( Y# }( F J0 w0 g, R0 P) L" D: o
5.39.217.77:8898 w6 l: w# i3 ?+ Y
case 3
6 ] R# J5 Y; N% o$ J6 e" j/ F- }TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain5.39.217.77:8898, L5 p, m* n0 H1 n9 d
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。- |2 w3 H6 e5 t/ E q
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |