First, randomly select 10 balls out of 12: test 5:5
, m! T. ]/ m3 e( X0 N- rif(1) same then
8 X- ]$ [0 s7 Y$ h/ Gtvb now,tvbnow,bttvb take the heavier part, test 2:2
/ k5 s( p9 y# o$ \: y( f* j公仔箱論壇 if(2) same thentvb now,tvbnow,bttvb5 t" B1 Y# k0 {% @
get the last ball with difference weighttvb now,tvbnow,bttvb8 s, l5 V) K( c; D9 G9 N6 t
else
6 y' \/ W) U0 V" K$ K take the heavier part, test 1:13 z" I u& E% ^# I& V) | l
get the ball with difference weight
$ T$ N+ j4 M1 }# y" ?4 F- o end if(2)公仔箱論壇 V& [% P& _; b, j
else公仔箱論壇7 s+ P. m3 [5 O' b
test another 2 ball
( Z, l% A& W$ U) tTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。 get the ball with difference weight
; Z. k% y' o" B! @7 `" eend if(1) |