let the 12 balls be numbered 1,2,3,4,5,...,12
0 j* R. C' X- S; `% gtvb now,tvbnow,bttvbweight 1234 with 5678; F/ j* o% X: T3 D; w5 @0 x& `
case 1TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。7 k/ o9 q( F% r$ I
if 1234>5678, then weight 125 with 678
, E# S; |# i8 T9 A/ nif 125>678, then weight 1 with 2tvb now,tvbnow,bttvb2 c6 P7 d8 x7 F. s7 g
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
6 f4 ]& y9 j; utvb now,tvbnow,bttvbif 125=678, then weight 3 with 9
5 s" {; a' l, ^$ j公仔箱論壇if 3=9 it is 4, else it is 3
% c+ F l0 m& H' J$ L, }if 125<678, then ewight 3 with 4% x4 P o. A3 Z x
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 49 F5 R2 n) A& B
( B0 Z8 m# i- F& y
case 2公仔箱論壇- w \* E. ?5 `7 X9 E6 b
repeat above for 5678 instead of 1234 if 1234<5678
7 b" c; |/ O- c3 l/ f9 r |. K5.39.217.77:88989 w. h6 |' q# q& T$ z* l" |1 I% _! I
case 3
9 c. b5 s; H' f' i5 o( v9 x2 `7 z1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explainTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。* D/ E5 S; d- `( A" s& N
( t; [! C3 h! J+ O% g公仔箱論壇[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |