let the 12 balls be numbered 1,2,3,4,5,...,120 V- y% L7 w+ M8 i; E7 P
weight 1234 with 5678) \) w, [+ @! Y8 \
case 1
# J1 w- D" k9 Y5.39.217.76if 1234>5678, then weight 125 with 678
! Z' x# o- U2 Ttvb now,tvbnow,bttvbif 125>678, then weight 1 with 25.39.217.76" K/ C2 f4 t R/ ~$ G
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
( @0 d1 |; ^2 j1 m+ C! K0 K( K公仔箱論壇if 125=678, then weight 3 with 9
9 Z) ]" O$ [3 k9 e7 Jif 3=9 it is 4, else it is 3
" p7 t4 s6 H, e& Y2 N! M# iif 125<678, then ewight 3 with 4公仔箱論壇9 O- D7 F- n5 p _
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
/ o: r4 V& }- ^8 m
% \% h4 A/ ]( f; `公仔箱論壇case 28 ^6 B: g2 o7 H$ w) _# ^
repeat above for 5678 instead of 1234 if 1234<5678
% V$ ` H4 N$ R7 c# ^TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。
[. A5 a$ v+ B; t3 F- L; Gcase 3tvb now,tvbnow,bttvb$ Y! N2 s; B r1 Z
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
. ~# S5 m( K- W6 D( n* t/ n5.39.217.76: z8 d+ I) r j: l; q4 B
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |