let the 12 balls be numbered 1,2,3,4,5,...,12tvb now,tvbnow,bttvb: X V, c8 e6 P- _) Q2 A9 L) F
weight 1234 with 5678
: z! W3 U6 F7 n0 E- B7 P4 awww2.tvboxnow.comcase 1 M& I, ^- a' ^7 e& V H
if 1234>5678, then weight 125 with 678www2.tvboxnow.com* n; e- Z& t) J% z* u
if 125>678, then weight 1 with 2: Y5 X D0 F t% I4 t/ E8 N+ ?
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 25 t4 L$ Y$ Q1 t9 s1 U" @
if 125=678, then weight 3 with 9
5 t4 I/ D& I5 N1 ?1 m$ t( l公仔箱論壇if 3=9 it is 4, else it is 3
5 V: H6 E0 q# G; z, \. ^7 vTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 125<678, then ewight 3 with 4
% v8 h/ U0 h j' Y' ZTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
0 R% h1 d0 o) m5 a, x& O5 R9 z2 ]5 N5 r
case 20 s, E, i5 X! x8 o4 u2 ?9 E3 x
repeat above for 5678 instead of 1234 if 1234<5678; z/ U' m6 c+ M p- a" Y% K- e* P
- k$ b5 W, E; }case 3
, X% v7 ~/ R$ m- l" s* `( x |; bwww2.tvboxnow.com1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
- G; O4 i \7 B) ]& o" M& `. e! N6 V7 m( F D
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |