First, randomly select 10 balls out of 12: test 5:5公仔箱論壇$ n6 }( ]# g4 P5 }/ Q/ e
if(1) same then
0 h6 V, X+ I H p1 j& \ take the heavier part, test 2:2
% w$ }) s w$ q1 B7 t$ Z- k$ _2 gtvb now,tvbnow,bttvb if(2) same then
" ^/ s) s0 o. C! L( @5 L get the last ball with difference weighttvb now,tvbnow,bttvb2 m& O2 x [6 P; c. _8 X- E
else- A; @9 p: Z9 T) U* w2 s/ X
take the heavier part, test 1:1公仔箱論壇 ~! Z% d! K" L$ ^/ _- c- H
get the ball with difference weighttvb now,tvbnow,bttvb6 P3 S/ m( y7 E. R" j
end if(2)) Z! a( k Q0 y. ?+ {" O' ^' F
else
3 w) I2 |) K8 Q7 Ytvb now,tvbnow,bttvb test another 2 ball
1 c% z% s5 S. W- ~( m2 ^# Ntvb now,tvbnow,bttvb get the ball with difference weight4 i! F) Z6 R' d+ a; J6 U/ X
end if(1) |