let the 12 balls be numbered 1,2,3,4,5,...,125 a. y# s2 F" J( j
weight 1234 with 5678
* O! s, }' e+ p: S" U2 s公仔箱論壇case 1
* m* n! Y, e2 O: O$ w+ iif 1234>5678, then weight 125 with 678
$ ? E, _# x' b( f' e. E公仔箱論壇if 125>678, then weight 1 with 2. @5 \! S. v* G1 ^ q
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
5 W; C+ N3 p/ d0 q) p3 R1 L Ztvb now,tvbnow,bttvbif 125=678, then weight 3 with 9
! {3 G, c, F1 \ g! Qtvb now,tvbnow,bttvbif 3=9 it is 4, else it is 3
/ _4 y) b) M+ x# qif 125<678, then ewight 3 with 4- L; ~7 J5 [" d% N7 F
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
1 j- m* u. @! F, a5.39.217.77:8898
) [; z9 u L/ W; I5.39.217.77:8898case 2tvb now,tvbnow,bttvb. i* w! ^, t1 P j4 M
repeat above for 5678 instead of 1234 if 1234<5678公仔箱論壇/ s" b& ]0 z. U$ f& F5 ^
5.39.217.77:8898( T* w ~4 Z( D" _* ]2 H. l8 m
case 35.39.217.77:8898. F: \' z {- |4 R" N4 g/ k
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain3 F/ l& q8 ^& q$ N
9 P7 f C$ t5 Z- Ytvb now,tvbnow,bttvb[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |