let the 12 balls be numbered 1,2,3,4,5,...,127 C1 e7 C; W$ e) C* x. J0 }6 h; J$ T
weight 1234 with 5678
+ K* S3 x7 z$ }5 kcase 1
* [ {9 _' C& l K7 ~tvb now,tvbnow,bttvbif 1234>5678, then weight 125 with 6789 X3 _! y+ N' o! b5 [6 z
if 125>678, then weight 1 with 2公仔箱論壇1 z) S4 e; j5 @' A9 F* f5 f" q
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2tvb now,tvbnow,bttvb3 L: `! B. v0 c, c- c
if 125=678, then weight 3 with 9
1 o9 J& @, F8 T8 i- Utvb now,tvbnow,bttvbif 3=9 it is 4, else it is 3www2.tvboxnow.com1 W0 c& e; L% G, L& E, J
if 125<678, then ewight 3 with 4
/ J7 u* c- J, M. m1 i: p; w9 n1 I0 |if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
4 a" w: A0 U+ i9 Btvb now,tvbnow,bttvb
9 r. f8 [- ~ o- D+ S0 W+ i3 ~tvb now,tvbnow,bttvbcase 29 z. x; v0 @6 L, m
repeat above for 5678 instead of 1234 if 1234<5678tvb now,tvbnow,bttvb4 \! a0 r& X$ A" O) A" L
tvb now,tvbnow,bttvb# w: l. `" w/ q6 }
case 3
7 z$ {, L# i0 F- R7 A# P1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
1 z2 m2 o9 F7 l i3 M, awww2.tvboxnow.com
6 t# ~& O$ C, o" c" t2 D7 Z+ h/ N9 x[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |