let the 12 balls be numbered 1,2,3,4,5,...,12# P- G% l. a* m l% O8 l, ?, U3 [
weight 1234 with 5678
! A3 ~# l \8 Y1 y3 M' f# i* pcase 15.39.217.77+ L6 C* U) ]* v$ Q2 `1 r+ [
if 1234>5678, then weight 125 with 678, o9 ?. P% U- u W' }0 T/ _
if 125>678, then weight 1 with 2tvb now,tvbnow,bttvb9 j2 n" d+ ]0 k# _. j3 ?5 u6 v
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2公仔箱論壇2 q/ [' c3 p$ O
if 125=678, then weight 3 with 9
7 [) L# l+ g( _5.39.217.77if 3=9 it is 4, else it is 3
. E* v% o% N4 t3 ^if 125<678, then ewight 3 with 4公仔箱論壇$ {) [+ t- w4 `
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
$ m. K' [- ?7 r% I4 Z1 O: Etvb now,tvbnow,bttvb: d }' V& @7 {8 g3 P& B
case 2tvb now,tvbnow,bttvb' b' j @1 M7 N B
repeat above for 5678 instead of 1234 if 1234<5678% g9 L% U+ W5 \& q( X" \" V
3 R! |* e0 J. Y+ {tvb now,tvbnow,bttvbcase 3tvb now,tvbnow,bttvb) g, I4 t/ `, w: d' Y l3 r4 J5 D
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! x, \! z% a+ J! R. m
5.39.217.776 k: ]- N, O9 a
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |