First, randomly select 10 balls out of 12: test 5:5
5 K( L# j- X! n9 l% c }tvb now,tvbnow,bttvbif(1) same then公仔箱論壇0 V0 g# E. x* @3 O$ x5 s6 H* f
take the heavier part, test 2:2
! P3 C* o1 F- ~& btvb now,tvbnow,bttvb if(2) same then公仔箱論壇& N; |: j8 D7 W# \7 @1 ?' H: g
get the last ball with difference weight
7 M+ Q8 o# F- d2 K/ J# b% H1 Z else6 _* f. ^5 @) G& q" G
take the heavier part, test 1:1公仔箱論壇% M# |8 W6 u+ p; ~8 n# q( q
get the ball with difference weight
7 L+ Z7 |1 i1 N vtvb now,tvbnow,bttvb end if(2)
# D6 f6 h9 @9 u/ s$ z: u, g qelse9 a/ T, ~, b8 g/ |
test another 2 ball公仔箱論壇* _1 }6 e& d. L$ m
get the ball with difference weight
* W3 y4 g# [: o, I6 J tend if(1) |