let the 12 balls be numbered 1,2,3,4,5,...,12
& Z% L/ {1 s! o5.39.217.77weight 1234 with 5678
, }1 S$ l- O- e& a8 \tvb now,tvbnow,bttvbcase 1
9 _) L: q8 b+ d5 b* r1 Z1 f5.39.217.77if 1234>5678, then weight 125 with 678$ q1 j. D( w$ d7 z) g) R5 e
if 125>678, then weight 1 with 2公仔箱論壇9 g+ w9 l0 s" P7 P- i
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
3 P b5 c4 [" l9 tif 125=678, then weight 3 with 95.39.217.774 B! U, h! b Q
if 3=9 it is 4, else it is 3
I: M5 L& d" i3 `5.39.217.77if 125<678, then ewight 3 with 4) R: j+ }% K' ~( Z
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 45.39.217.775 A* A" C* Y% [
公仔箱論壇6 D" b3 \$ P! e+ j' ]% F
case 2
+ L6 ^9 s' r J. ^' Z0 j5.39.217.77repeat above for 5678 instead of 1234 if 1234<5678
3 z" s) x7 ~; L+ nTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。5.39.217.771 z/ K( k% W8 P) |1 _3 g3 y
case 3公仔箱論壇8 ?7 s( W9 x0 [8 q8 [
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explaintvb now,tvbnow,bttvb! y; p; C$ _% A7 e8 }
8 w6 B! i& T. Y: p: M% ITVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |