let the 12 balls be numbered 1,2,3,4,5,...,120 |* M2 Y. w9 r3 }" c
weight 1234 with 5678
* N9 H! g' d+ Fcase 1
+ F, b! e) B( yif 1234>5678, then weight 125 with 678
4 c$ @ ` X* [! v, e5.39.217.77if 125>678, then weight 1 with 2
, Z# H) X0 v# i; n4 ]公仔箱論壇if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2tvb now,tvbnow,bttvb' U% U* H5 g! c3 Y$ J
if 125=678, then weight 3 with 9公仔箱論壇9 f% y# M9 j& e, X
if 3=9 it is 4, else it is 35.39.217.777 X& U0 A( U& a% N e( N& y
if 125<678, then ewight 3 with 4TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。4 U; l$ D# N8 y# h) p+ e
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
- K1 u7 _5 G) k- dtvb now,tvbnow,bttvbTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。% _& W& y" M" w0 R
case 22 g& g% p' ?1 h( W4 ^# J
repeat above for 5678 instead of 1234 if 1234<5678
3 ~0 ?6 W0 L/ W7 V6 B: k' M
5 u7 q( x6 _6 L公仔箱論壇case 3
9 `0 T+ |. W/ u5 `tvb now,tvbnow,bttvb1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
b G1 q( o1 F$ U$ X ?tvb now,tvbnow,bttvb
! y; _9 j9 x7 i# C- A[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |