let the 12 balls be numbered 1,2,3,4,5,...,12
" B7 r' ?7 o3 f Q7 ntvb now,tvbnow,bttvbweight 1234 with 5678
+ h: e- T# `" s6 h; ZTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。case 1
# X4 k* V/ Z4 A6 n- s+ ~TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 1234>5678, then weight 125 with 678tvb now,tvbnow,bttvb2 D0 E1 ^" N' C+ z9 h
if 125>678, then weight 1 with 2tvb now,tvbnow,bttvb8 U5 S! J/ Z9 @4 d, T7 m) s
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
9 `9 `( C N9 W1 R1 L* m/ L5.39.217.76if 125=678, then weight 3 with 9
8 R: [: W3 i$ ^4 t9 bif 3=9 it is 4, else it is 3tvb now,tvbnow,bttvb: H' R% V6 T# p' p9 q5 o7 {
if 125<678, then ewight 3 with 4TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。6 ~# c% B7 r* T: o% \
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
j1 Q/ `/ R6 h* j" H& E公仔箱論壇TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。" J3 S$ P% V. b$ Y% {& X' ~
case 2
' K5 `% R, p1 c9 }# }" ~4 R+ V: E公仔箱論壇repeat above for 5678 instead of 1234 if 1234<5678
5 Q6 ]% K: B9 P+ y. c' \tvb now,tvbnow,bttvb. L5 _3 I5 T' }8 T5 Z9 A: h) `0 v0 s: k
case 3
% S* f; h4 B9 A/ e$ N1 ytvb now,tvbnow,bttvb1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
9 v. J2 b1 M5 F
, Z' H' N' U Q* r; Q9 y. R# r5.39.217.76[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |