let the 12 balls be numbered 1,2,3,4,5,...,12公仔箱論壇! b! l% N0 E$ T0 @; R" E- v
weight 1234 with 5678. h( u. [) l5 f/ ~2 s: [; B
case 1tvb now,tvbnow,bttvb8 A8 }/ j' Z9 @8 |) U# ~
if 1234>5678, then weight 125 with 6784 Q# y) x" K5 l. P2 d- L
if 125>678, then weight 1 with 2
0 j& z; t6 m" r& D# @9 j3 N. _5 r8 Ftvb now,tvbnow,bttvbif 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 20 x3 H1 X+ o7 v" E/ B* s* A3 |
if 125=678, then weight 3 with 9
( p1 R# _5 Y2 @# J5 R! Jif 3=9 it is 4, else it is 3公仔箱論壇3 V' @4 u( P# c; q) K v
if 125<678, then ewight 3 with 4/ G" d* o- j2 e" S% @0 R# i
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4os.tvboxnow.com1 z4 ?6 e4 X; ?# o7 L& x
5 e& G. y0 F' q4 ]% z# A$ xcase 2
+ V0 Y, z5 k5 R* E! w* P% i$ ~% Brepeat above for 5678 instead of 1234 if 1234<5678
" p! a3 o9 u. U' B% V. `9 P
- m. ]+ K& f! _% ?3 p; |case 3
: g+ X9 g5 s8 j* F* M1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain9 l$ m& R) L$ C+ n" s! }. h
/ z9 j7 r2 c k& T; L. t
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |