let the 12 balls be numbered 1,2,3,4,5,...,12TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。1 y, F" [" X8 i5 M; B$ z$ q
weight 1234 with 5678
7 I2 X7 y2 _1 E. }, pcase 15.39.217.77:88986 q1 x$ @+ S2 J3 d0 V. r$ u) v
if 1234>5678, then weight 125 with 678
; @; l4 V6 f1 ]* _5.39.217.77:8898if 125>678, then weight 1 with 2
5 A$ v0 z: z! N* I* ] R" GTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2tvb now,tvbnow,bttvb# z' p) w. r3 P4 i
if 125=678, then weight 3 with 9
$ Z: u, {) u; l6 N% a9 x6 n& u5.39.217.77:8898if 3=9 it is 4, else it is 3
" h% X" x- u4 I4 i u# \+ fif 125<678, then ewight 3 with 4TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。9 j+ { k! i$ H3 r. c% U
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 45.39.217.77:88982 d/ Q/ i6 {- Q, t- n
公仔箱論壇8 ?, @# I4 u$ B( y" ^% j
case 2
, p% c: Z+ `# @3 p公仔箱論壇repeat above for 5678 instead of 1234 if 1234<5678
9 E# V v" N# C1 h
( s6 u" l4 B4 H# g& q! h+ ~case 3- a" `8 F" i7 C+ }
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain公仔箱論壇1 V3 N; U1 L: B8 o' p7 H- x3 m. v
# j+ f1 G2 u0 }" u0 d公仔箱論壇[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |