let the 12 balls be numbered 1,2,3,4,5,...,12tvb now,tvbnow,bttvb/ `& E7 U' d2 d6 h2 `: C* e
weight 1234 with 5678
, i2 p+ S; [" {% w2 p7 d. Y! ]$ [case 1tvb now,tvbnow,bttvb' `. J! S* r( {6 o% ]
if 1234>5678, then weight 125 with 678
9 y$ L; x" F+ l! m5 L9 H0 Iif 125>678, then weight 1 with 2TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。" S6 ~/ v8 U# c# a
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
$ p1 R7 [* b% w0 }. X! P+ stvb now,tvbnow,bttvbif 125=678, then weight 3 with 9
m. e* R, r2 }4 d8 p5 K* pif 3=9 it is 4, else it is 3
; ]0 Q0 L' e' F7 Mif 125<678, then ewight 3 with 4& E. p Y2 [% ]$ Y4 s6 B
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。5 R2 ]! [# _1 G7 m! r
7 m( A) O+ R1 s% i& gcase 2
( f T6 V1 Y0 ^/ q2 `6 N8 m+ V8 rrepeat above for 5678 instead of 1234 if 1234<5678TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。6 w& `% q4 k; X- D
5.39.217.76; U) \& U4 P+ c) }- q. |
case 39 t6 A- T, j* ?5 f# c
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
) |- g1 S9 `+ l, Y! j公仔箱論壇1 o; Y6 Z6 s& t! G j
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |