let the 12 balls be numbered 1,2,3,4,5,...,12
5 V* t- C; j" x4 w7 Y- L8 A5.39.217.77:8898weight 1234 with 5678
_" q2 ]( {3 I9 m( Jcase 1
, G$ p8 Z/ n. q9 D! X7 t* Nif 1234>5678, then weight 125 with 678/ \( j i8 B" W3 C2 A1 h; H$ {
if 125>678, then weight 1 with 2
. G( p! Z6 Q/ g8 ~- \TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
, Q- t% l5 J- _if 125=678, then weight 3 with 9公仔箱論壇8 l9 O' B1 [5 _9 d2 r
if 3=9 it is 4, else it is 3TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。# p$ z# E# ]8 L" @
if 125<678, then ewight 3 with 4/ O: h% {. {0 y! U2 d
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
- i8 l- Y) C7 `% n+ ?( u& H公仔箱論壇tvb now,tvbnow,bttvb' S, L9 Y' ?' v' U! }8 B
case 25.39.217.77:88989 \4 y, w' H0 E: m3 ]
repeat above for 5678 instead of 1234 if 1234<5678
% K1 }2 K' X/ B3 p$ M公仔箱論壇
' e( z! ^2 ^+ S9 u) a" OTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。case 3
% s1 A% ^" Y' `9 _/ Utvb now,tvbnow,bttvb1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain V# ~! Z" h& m
5 z( }( B" r( GTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |