First, randomly select 10 balls out of 12: test 5:5
; }% l. _4 C, S) v! ?tvb now,tvbnow,bttvbif(1) same then6 Q W. |5 O' L2 G: Q
take the heavier part, test 2:2公仔箱論壇# T7 A) D' [2 P
if(2) same then5.39.217.76* `, P1 t; P R4 I2 r
get the last ball with difference weight
& D$ U+ I2 J( P4 ]% L. l else5.39.217.76$ x; o, ?2 Q" Q' g* V) A; G4 B2 J- b2 c
take the heavier part, test 1:1
! _0 D( {& l8 }( `& @tvb now,tvbnow,bttvb get the ball with difference weight
3 |' p+ _7 t; _ end if(2)公仔箱論壇2 C" @2 l7 S& P
elsetvb now,tvbnow,bttvb7 C( U. M! f2 {( k" q7 @$ L
test another 2 ball
& C9 T: O& k3 L+ r ltvb now,tvbnow,bttvb get the ball with difference weight
# n( [# z& u7 ?# h; J- C4 ]0 v3 A5.39.217.76end if(1) |