let the 12 balls be numbered 1,2,3,4,5,...,12
: G( N) \* ^4 Y$ b5 l, zTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。weight 1234 with 5678
, d" M4 u2 n7 m4 v$ {TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。case 15.39.217.772 Q5 F s9 C- j: ^# U1 I- d
if 1234>5678, then weight 125 with 678
+ }/ C6 f. v5 _/ \+ fTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 125>678, then weight 1 with 25.39.217.779 |3 s* O. E/ z+ @1 z- ~
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2tvb now,tvbnow,bttvb: u# h, r7 `! J
if 125=678, then weight 3 with 9" ^7 c+ u2 u1 g0 b5 H" H3 i. h
if 3=9 it is 4, else it is 3
& f2 t4 V4 U0 ~: T7 O$ B3 l5.39.217.77if 125<678, then ewight 3 with 4
, I. F5 @$ y! [( NTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4tvb now,tvbnow,bttvb F5 k' H; G; D/ X) C7 R
公仔箱論壇/ x* h# b# A. A) d/ a& k. f
case 2公仔箱論壇0 w% l; [3 B; R3 X) t9 k- Q
repeat above for 5678 instead of 1234 if 1234<5678
7 k( }: _2 \0 J! S7 A7 Z% U# q# r% Q' U
, n, q4 x$ n1 Z8 _9 ~case 35 u" ^8 R) R+ ~. d+ t
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
2 s1 C/ w' e& {# u! _- R2 t公仔箱論壇
r9 `: {# r% E7 K5.39.217.77[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |