let the 12 balls be numbered 1,2,3,4,5,...,12
$ V4 z8 ^% k8 K" K3 K1 N) U公仔箱論壇weight 1234 with 5678公仔箱論壇' Z$ W: K" v* A8 p4 Q6 F7 }5 r8 t
case 1公仔箱論壇6 J, f. g3 O( e" [2 i( ^# H7 ^
if 1234>5678, then weight 125 with 678
, ? M7 @. i$ j) m5 V& utvb now,tvbnow,bttvbif 125>678, then weight 1 with 2
$ m# B' c2 W' H. |7 w* I4 ]' V" Ewww3.tvboxnow.comif 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
% s2 ~% R& T4 u' T* Ytvb now,tvbnow,bttvbif 125=678, then weight 3 with 9www3.tvboxnow.com! N- A* a' }- _4 c9 t& }
if 3=9 it is 4, else it is 3tvb now,tvbnow,bttvb8 I \# p9 j. t
if 125<678, then ewight 3 with 4
8 v3 l9 M# P% h* {! s6 [$ rif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4www3.tvboxnow.com& ^; B3 U, r5 t: J+ z3 e
9 K* b% e Z! c) n9 B4 nTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。case 2; E a. t: m: B
repeat above for 5678 instead of 1234 if 1234<5678
( z e& }/ i( ?www3.tvboxnow.com
9 E7 y. d0 T% T! S2 L/ h! G: mtvb now,tvbnow,bttvbcase 3
. x+ ?" s0 v1 i1 ?2 ?' W L, s1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
- g* Z& [! q$ ?! @0 q! Z公仔箱論壇5 `2 t7 j: o$ m, {: h' f
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |