let the 12 balls be numbered 1,2,3,4,5,...,12
3 ?! Q; C+ p c/ `% f' lTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。weight 1234 with 5678
2 m6 r* [ R( }2 g1 Rcase 1
* Q# K! ]* K+ A5 E: K' tif 1234>5678, then weight 125 with 678* o. ]8 \: {% W+ o) j
if 125>678, then weight 1 with 21 h; `$ F7 c' e: z4 _- K+ r
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2tvb now,tvbnow,bttvb& j- ~7 o& l: y
if 125=678, then weight 3 with 9
$ ?0 L# a: `& E7 Eif 3=9 it is 4, else it is 3tvb now,tvbnow,bttvb: c* s9 ^3 @ D7 B+ Z% S5 _4 Y
if 125<678, then ewight 3 with 4www1.tvboxnow.com: o; U4 k. ]* l8 r
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4$ |* j' @# k3 L, J( J% X6 M
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。# Z5 x8 Q5 F" s# H7 F
case 2
) c; K" E& Z- G& ~6 Q! krepeat above for 5678 instead of 1234 if 1234<5678
# b Y4 m* a6 K0 A% o% u3 B/ WTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。5 l. l* P% J8 N% o6 n
case 3
! n4 @+ @4 [# B, O+ L8 S1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
- l' D) \8 P+ G3 V4 b3 cwww1.tvboxnow.com公仔箱論壇; S1 |1 f5 T9 P1 E9 ]: j
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |