let the 12 balls be numbered 1,2,3,4,5,...,12
. [) I8 c( p: ^* } O* y! atvb now,tvbnow,bttvbweight 1234 with 56787 H- D9 D- z3 {; J$ K4 m! X; j a
case 1
# D4 d- \0 ^1 w1 u1 ?) Y+ Lif 1234>5678, then weight 125 with 678tvb now,tvbnow,bttvb4 o. ^: T4 z/ Q& T
if 125>678, then weight 1 with 25.39.217.77:8898$ U4 ]$ y) W7 [' k
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
& p4 s- [! ~+ v: C7 a6 i. ETVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 125=678, then weight 3 with 9
! K- a* Y" s0 K* R0 f8 V% s) B公仔箱論壇if 3=9 it is 4, else it is 3
2 @- l) L! T+ \& v- x* M公仔箱論壇if 125<678, then ewight 3 with 45.39.217.77:8898! d9 o( q. s1 ~( T- ^
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
9 q" P# a7 K, F ?/ ~1 g. R
! O. S& Y5 `) D, QTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。case 25.39.217.77:8898# o$ y- J/ w0 T8 P: h
repeat above for 5678 instead of 1234 if 1234<5678" o' T) m' v- B4 W6 B
5.39.217.77:8898/ W t$ \+ c0 L3 b7 f6 P. w3 c& \
case 37 k: c1 w7 G" i9 [) g4 c
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
& h s7 N& X. M6 @% k+ B
3 U+ `' f& W" F# p7 n1 H) K. ~tvb now,tvbnow,bttvb[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |