let the 12 balls be numbered 1,2,3,4,5,...,12公仔箱論壇' n; U8 g' b$ L/ H4 X& x
weight 1234 with 56787 I6 y8 z- b) e
case 1% N0 N! y4 y( _: Y! Z
if 1234>5678, then weight 125 with 6785.39.217.77:8898) s! f6 c# W% [" h8 [9 g8 T5 P
if 125>678, then weight 1 with 2
) @" m9 u9 \( HTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
6 k6 h' S$ x" |tvb now,tvbnow,bttvbif 125=678, then weight 3 with 9
9 E7 d! l& P4 u- l& q dTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 3=9 it is 4, else it is 3# M$ D& ~$ q" \
if 125<678, then ewight 3 with 42 m- I- U" V8 l2 J
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
) B3 }5 h V! R! C0 I' z8 W公仔箱論壇
9 i; ~- ]0 B' Z9 U4 k- F8 }4 W: ocase 2
/ E6 q- {7 v% I& s; @5 mrepeat above for 5678 instead of 1234 if 1234<5678
5 B& L$ J) G+ ^' r9 g9 u1 o5.39.217.77:8898
% J6 c7 s+ e. F$ y p A/ ^5.39.217.77:8898case 3
: @- ?! X6 d0 s atvb now,tvbnow,bttvb1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain y+ F% P! H8 v, i' t
5 ^/ N+ t* Z- t1 ?, g/ jTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |