let the 12 balls be numbered 1,2,3,4,5,...,12tvb now,tvbnow,bttvb6 u) L0 N+ T5 C3 L$ [- ~9 @8 o6 R
weight 1234 with 5678tvb now,tvbnow,bttvb' g* p! Q$ k6 w, t& _
case 15.39.217.77:8898" d( \0 w. ?9 J
if 1234>5678, then weight 125 with 678tvb now,tvbnow,bttvb. K3 P9 \( N$ D3 _' H
if 125>678, then weight 1 with 2公仔箱論壇0 ^, ~/ @7 `% t5 c0 X: S
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
6 |1 @. B, g3 E0 e0 ~tvb now,tvbnow,bttvbif 125=678, then weight 3 with 9
/ D, d0 T# {" S/ m8 k; S) y6 v7 [5.39.217.77:8898if 3=9 it is 4, else it is 3
# ^2 @' t" ]5 h% }if 125<678, then ewight 3 with 4+ D, e0 S1 T7 r( n+ C# D4 W
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
/ O/ T* u7 v. f4 V. ?' v8 ^TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。4 U% ]* @8 X- o, o5 V
case 20 Y; j7 S! `. b3 ~# }& X! ^# l
repeat above for 5678 instead of 1234 if 1234<5678
" F) _0 N. G2 | c公仔箱論壇TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。) c6 g. ~; E8 o8 E
case 3 ]1 i; L2 l1 F8 f7 M. L$ u$ L
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
9 t0 e2 [3 z4 \; r1 k1 G( D( @% J d' G- v/ i y6 E& n2 u
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |