First, randomly select 10 balls out of 12: test 5:5/ t" d/ l' R) S# r7 U
if(1) same thentvb now,tvbnow,bttvb4 s+ P8 r& K9 p0 j: G) `
take the heavier part, test 2:2
! ?' N% Q; @- j Z! O. ztvb now,tvbnow,bttvb if(2) same then3 I% {! n5 x$ Z
get the last ball with difference weight
3 m- o7 }& U+ Y A! F4 P# Q3 a else5.39.217.76/ l8 e D2 |- e- s* ~
take the heavier part, test 1:1
0 H i2 d9 H4 \2 {# K: G/ Wtvb now,tvbnow,bttvb get the ball with difference weight0 Q/ I6 C8 k8 {; J" b# @& { P
end if(2)& I; p5 ?- q; J& {
else公仔箱論壇. N! q. `( d+ Q/ i& ]$ I |3 V
test another 2 balltvb now,tvbnow,bttvb( r( n) J4 N6 }, v
get the ball with difference weight
5 ~+ P$ h+ X& u4 E. U9 q5.39.217.76end if(1) |