First, randomly select 10 balls out of 12: test 5:5! C6 ]# h5 j% `6 r( |9 b5 c1 `
if(1) same thentvb now,tvbnow,bttvb1 W1 @: J9 v" Z- A/ Y( o) s/ \7 n$ T
take the heavier part, test 2:2/ b6 ], Q8 B0 N9 ^! e
if(2) same then( g$ e7 M2 e# \/ R
get the last ball with difference weight; |5 }( d, Q( w# A% N
else公仔箱論壇2 |8 C, X! ?8 q6 u* l. n x1 P
take the heavier part, test 1:15.39.217.775 Y+ x) Z! ~) R; T* Z1 y9 {
get the ball with difference weight5.39.217.77$ m$ |( ]# r/ A/ z- \
end if(2)
* l- ?2 c0 n6 P; Selse; m% ~5 c7 W& u/ \7 J% V) e7 l
test another 2 ball
9 ]1 H9 B" X4 P atvb now,tvbnow,bttvb get the ball with difference weighttvb now,tvbnow,bttvb u# X- u6 z r. f! r9 v. Z6 X/ u
end if(1) |