let the 12 balls be numbered 1,2,3,4,5,...,12tvb now,tvbnow,bttvb# l: [' J5 V% F" p& R8 C
weight 1234 with 5678
1 Q r+ S( a5 q9 y$ Y3 L5.39.217.76case 1
: r8 s5 X( m' n5 U7 z0 G `5.39.217.76if 1234>5678, then weight 125 with 678
9 a2 }( R2 m! i' x2 o" m% Htvb now,tvbnow,bttvbif 125>678, then weight 1 with 2
2 r C2 c2 T5 j. }if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2( R! p9 f) t" z& e- V9 x
if 125=678, then weight 3 with 9: ~- `, ~5 Q I8 p$ _2 S0 F
if 3=9 it is 4, else it is 3
_1 n4 x F; D8 ~% pif 125<678, then ewight 3 with 4
6 g! w7 H6 s! | `' A2 _5.39.217.76if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 49 [' i" ^9 ?) p
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。$ {4 k$ a& O0 e& T4 N: X5 v
case 2
/ j$ [# V' q& g1 e# Trepeat above for 5678 instead of 1234 if 1234<5678# g7 c& Z4 x8 g" z/ n* g1 T7 H0 F
tvb now,tvbnow,bttvb5 Z7 V0 P1 s% e5 W X2 L8 u
case 3& l; J- T# G( h
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain公仔箱論壇1 O7 S8 d+ [: T8 z, F. W; G7 C
2 v) c2 k# }2 k9 y. i公仔箱論壇[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |