let the 12 balls be numbered 1,2,3,4,5,...,12+ q: t0 C" z/ N# g, m$ ]
weight 1234 with 5678tvb now,tvbnow,bttvb# Q& v+ Q, M' v7 d3 U
case 1
' R' d* G+ x- S2 u. Pif 1234>5678, then weight 125 with 678
9 a! ^* p* ~9 D0 O: C4 g: N; p9 ^if 125>678, then weight 1 with 2
1 K; V3 W- S- o: y2 y$ A# g8 K% k' @if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2' v$ `( Z3 g4 o, D
if 125=678, then weight 3 with 9tvb now,tvbnow,bttvb) P) r! B0 U m5 u
if 3=9 it is 4, else it is 3公仔箱論壇# b7 N. L) E" a' C! }% `
if 125<678, then ewight 3 with 4* V5 s9 T: n* z1 g
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
0 d# a4 i( d* a# {" Etvb now,tvbnow,bttvb
& {* ^0 G5 X z& I5.39.217.77:8898case 25.39.217.77:8898: G* |# @' }. M I3 |# ~
repeat above for 5678 instead of 1234 if 1234<56780 _! P! P% M% U
) o& i0 v! w: q" K2 i1 D# m$ m+ s' u2 s公仔箱論壇case 35.39.217.77:8898- @) u. M! T2 h# U6 F! M
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
' q+ j3 f7 h" [- I* L5.39.217.77:8898; z8 r( f) f/ x2 E: t: J$ T- K8 B
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |