let the 12 balls be numbered 1,2,3,4,5,...,125.39.217.77- g( f+ i! ]% \" ^3 B1 [4 q: Q
weight 1234 with 5678
7 K+ r! l7 @ q0 k% Wtvb now,tvbnow,bttvbcase 1
# X. s% l( O6 l, X- w# vif 1234>5678, then weight 125 with 678
3 c8 o1 F7 k/ }! j6 ~) bif 125>678, then weight 1 with 2tvb now,tvbnow,bttvb: J. n3 Q2 e0 p4 Y8 c8 x$ o* U9 S7 `1 T
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
. @: W2 _7 c: J5.39.217.77if 125=678, then weight 3 with 9
, F/ E- Q, s/ Zif 3=9 it is 4, else it is 3. I8 M5 ]: X( B2 z& @) P9 r
if 125<678, then ewight 3 with 4
0 S: t) Z- o# _- V1 I公仔箱論壇if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
6 P. _7 q) X; BTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。
, N- T3 V, t/ B! w6 S! zcase 2TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。: X0 k$ M4 n+ @1 _$ V8 x) T2 @& v
repeat above for 5678 instead of 1234 if 1234<5678
/ n: J% ]$ x7 a& d' Z- G" D公仔箱論壇0 x* p2 d# J& c9 H' N) \
case 3: {/ b! X! g% z/ q/ Q6 p9 g, \
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
. k1 H- m$ _7 i& R; vTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。tvb now,tvbnow,bttvb0 @. }6 K* U Y7 |
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |