let the 12 balls be numbered 1,2,3,4,5,...,12公仔箱論壇/ U& c; @ s9 B! [# ]- W
weight 1234 with 5678
4 m# G; B! y0 P- X5 a: ^% {$ i, Q* Pcase 1
2 ^/ s) V9 j! y3 jtvb now,tvbnow,bttvbif 1234>5678, then weight 125 with 678公仔箱論壇7 E* a6 H5 Y- |+ a2 ]3 Y
if 125>678, then weight 1 with 2tvb now,tvbnow,bttvb6 ]7 |( y$ i) V
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
4 Y j$ M$ b6 a7 Tif 125=678, then weight 3 with 9tvb now,tvbnow,bttvb; M. i! P% Q! r
if 3=9 it is 4, else it is 3+ z4 {) j, c5 X$ B3 B: ^5 a
if 125<678, then ewight 3 with 4
8 p% w+ f; ^' G) Q* g5.39.217.77if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
- ?, |6 \6 Y4 _) V- d8 T% T/ B, R z3 Z/ H& {; [3 c
case 2. d* }7 m8 o) D3 R
repeat above for 5678 instead of 1234 if 1234<5678
! k/ ~5 g( _3 i5 F: O; w5.39.217.77) Q, D9 b% {/ P6 h' H/ h- P
case 3
- I5 s& F3 Y% w9 i; x8 Q, }% G6 u公仔箱論壇1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
5 `; @1 M# E" u7 l- L( Y公仔箱論壇
+ p+ r1 ^; C" x: o0 t[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |