let the 12 balls be numbered 1,2,3,4,5,...,12, g8 t( D0 M1 x& A8 N% D3 W
weight 1234 with 5678
2 i% v6 V X) d$ J1 Y5 x: mcase 1
5 g, N" v2 y6 V# M# r0 lif 1234>5678, then weight 125 with 678/ I) r$ z& w4 S" [( |9 T6 B( m8 ^
if 125>678, then weight 1 with 2
# T3 T4 @( A- ?8 r8 k* P% a1 d% @if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
* k) m0 S9 d& t8 R4 p公仔箱論壇if 125=678, then weight 3 with 9
' h9 u+ K1 P$ C! t7 a, J公仔箱論壇if 3=9 it is 4, else it is 3
9 ]: V, z+ d4 a% F+ G, W公仔箱論壇if 125<678, then ewight 3 with 4
]0 _, Q1 U! }+ Q1 M, ?+ C0 ?TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
) T0 Z7 i/ z3 c; w# R% G {. A/ C0 w. [ } y9 P3 g5 v" V4 B7 S
case 2公仔箱論壇/ E3 K. C/ O! R
repeat above for 5678 instead of 1234 if 1234<5678
" l" s6 [% k" o' C* Y4 i R7 B2 Wtvb now,tvbnow,bttvb公仔箱論壇$ j' \9 b! [9 [; Z
case 3
' v4 f! _$ q6 r5 [6 |/ k2 @1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explaintvboxnow.com# A1 D0 c4 [! m" ~8 V
公仔箱論壇5 k! D9 F I* A- O( i9 u
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |