First, randomly select 10 balls out of 12: test 5:5tvb now,tvbnow,bttvb7 c- M& R' `" w7 ~# _, _
if(1) same then
4 K) u- J D* J6 v; ]tvb now,tvbnow,bttvb take the heavier part, test 2:2
7 F" d2 i" ]0 s2 f8 ? q6 h( M if(2) same then8 x% [9 a* ?0 A) l6 ?: |
get the last ball with difference weight
& `) \0 R1 _" X5 p+ E# o2 A公仔箱論壇 else
/ c: ~2 R$ a6 V- s, i1 n# {' _公仔箱論壇 take the heavier part, test 1:1公仔箱論壇% y j" i5 M2 v0 c
get the ball with difference weight
1 B8 W! ]- D# V2 x/ G end if(2)
3 e& y, ~$ l3 X% B! b5.39.217.76else
. l" u8 G5 r/ b9 M公仔箱論壇 test another 2 ball' ^) [& t+ X6 `
get the ball with difference weight
' D# \) L0 w2 |. u$ r+ {9 h* D! ttvb now,tvbnow,bttvbend if(1) |