First, randomly select 10 balls out of 12: test 5:5
! v+ J- ]1 {: ^1 ^2 A' k: h; S5.39.217.77:8898if(1) same then
9 ^& V$ L8 D& D; S* ]+ u) M公仔箱論壇 take the heavier part, test 2:2公仔箱論壇8 y& g3 }/ z7 j4 u4 K/ U% a
if(2) same then
, a0 m5 Y$ d. W, x: Ktvb now,tvbnow,bttvb get the last ball with difference weighttvb now,tvbnow,bttvb7 i' F1 z9 f$ S. [/ ?! F- W
else
* u3 s& P6 Z6 N公仔箱論壇 take the heavier part, test 1:1
: _* z3 ]5 g( u) }6 A$ {公仔箱論壇 get the ball with difference weight
q2 D7 A* w. |( f+ j* o5.39.217.77:8898 end if(2)公仔箱論壇5 A; W( b# P! w7 E, W0 S3 e$ k# N
else
8 G3 G0 p$ z% d4 D公仔箱論壇 test another 2 ball: C6 x: r! v; r2 g" T1 x1 d
get the ball with difference weight
- `3 X$ v) k, W' D! P, Zend if(1) |