let the 12 balls be numbered 1,2,3,4,5,...,12
( N4 D9 d6 l% W% sweight 1234 with 5678
# L: r- K% j' f: stvb now,tvbnow,bttvbcase 1公仔箱論壇! |; X4 |5 z# i* y2 g' O$ N
if 1234>5678, then weight 125 with 678
# p7 j! h0 D; B }" T; fTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 125>678, then weight 1 with 2
4 R4 ?/ ] W$ G+ |) a公仔箱論壇if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
# R) ^" Y1 p# b- Y, itvb now,tvbnow,bttvbif 125=678, then weight 3 with 9
0 _3 W7 q( t* s& r9 ^$ E% gif 3=9 it is 4, else it is 3
5 A, S$ X5 B# I: ]9 x" v' |! Hif 125<678, then ewight 3 with 4$ e. d8 [7 Z& e$ b
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 49 i$ @! D2 T/ k: c
0 s2 F7 D$ P4 M5 W+ H
case 2
; C* G0 N1 Q" o0 b6 Q0 irepeat above for 5678 instead of 1234 if 1234<5678
( L2 t$ @6 G8 ]0 p7 `, g+ D$ N7 [5.39.217.77( W8 Q1 I0 j$ k* b4 N/ T
case 3
" n, y& X. s0 T5 E7 G1 P, W% g公仔箱論壇1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain公仔箱論壇/ J, x/ K$ r; E) H; |8 i
1 ?7 E$ I+ @. z# h公仔箱論壇[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |