let the 12 balls be numbered 1,2,3,4,5,...,12
& |. l6 p2 M; M* U公仔箱論壇weight 1234 with 5678tvb now,tvbnow,bttvb- ?1 B4 d0 k4 F+ G0 H
case 1tvb now,tvbnow,bttvb. z7 [$ ~& \8 Y( [9 q
if 1234>5678, then weight 125 with 6786 S; Z$ }2 ` ?
if 125>678, then weight 1 with 2: O; n& v1 r/ Z, S
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
. b( Y( q0 B% a8 `公仔箱論壇if 125=678, then weight 3 with 9
( n8 }+ t/ A# K2 m. F& l+ Yif 3=9 it is 4, else it is 3公仔箱論壇7 d( z7 A& e% ~' x. t& p- }
if 125<678, then ewight 3 with 4
5 p# n! V7 ~. v* s0 j( Oif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
3 s' W/ L# E7 h- h6 k, ETVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。
7 h) m N E/ z+ a7 [$ vtvb now,tvbnow,bttvbcase 2tvb now,tvbnow,bttvb/ Z2 Z) k" Q3 Y ^
repeat above for 5678 instead of 1234 if 1234<5678; X% {1 j r5 K u) z) |, g7 @5 \7 S
tvb now,tvbnow,bttvb3 k+ B8 N/ y7 P
case 3公仔箱論壇- W6 _# C/ Y/ ~
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
* ]6 x% ^' q/ Y9 K# Ltvb now,tvbnow,bttvbtvb now,tvbnow,bttvb' V* p% n0 c' }& m, z9 G, H* q
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |