let the 12 balls be numbered 1,2,3,4,5,...,12
& i' T3 F( r: B9 R2 iweight 1234 with 5678
" [& R" a1 m. t: \% m+ uTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。case 1tvb now,tvbnow,bttvb# l I( N {* `
if 1234>5678, then weight 125 with 6785.39.217.77:8898. _5 F( `% ]! `8 ]+ D2 z) _
if 125>678, then weight 1 with 2% c/ j" _% c8 Z6 Y' k9 u D
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2tvb now,tvbnow,bttvb3 J2 E! [4 l j! B3 Y
if 125=678, then weight 3 with 9公仔箱論壇5 f- p! S, n! a: Z7 \9 A# m
if 3=9 it is 4, else it is 3
; i( j2 d6 r2 X' s5 B b2 O6 V5.39.217.77:8898if 125<678, then ewight 3 with 4
5 `9 D" R3 T9 Z9 _0 B2 I4 Z. S( V9 G9 y5.39.217.77:8898if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4公仔箱論壇+ p: z9 a. z7 {* K- g n
$ j+ G- q- x" o( }5 ?' c: B! f/ p2 Icase 2
! F% i2 D0 b7 |repeat above for 5678 instead of 1234 if 1234<5678
' J3 G" w" C2 j7 W; n( @0 L$ g: ~4 ^
case 3
/ V# n8 g% A5 l) p1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
9 d$ b' W: L+ h9 v6 J3 b, L4 C- ^/ P4 F
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |