let the 12 balls be numbered 1,2,3,4,5,...,12
6 u1 K; Y9 H9 O+ Qweight 1234 with 5678
- D( m, z* \( }case 1
" i/ i7 T* v$ T5 L0 C" ?; e- N, Q1 Fif 1234>5678, then weight 125 with 6785.39.217.77( Y p) n+ q) m9 m
if 125>678, then weight 1 with 2
8 S- A" O+ d5 g# n7 A9 [5.39.217.77if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 25.39.217.77( \( I8 R0 L. A4 D
if 125=678, then weight 3 with 90 Z L& ~! d( I- `) L) q
if 3=9 it is 4, else it is 3
! ^: a, ]# K% U ^! @; ?0 W) STVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 125<678, then ewight 3 with 4
! z' E% l: J. z; }/ K9 Gif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 43 F! W- F4 Q$ k# }" ^
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。, O8 W+ V" v5 L9 r/ F0 E$ V
case 22 K% C" S: [7 T& o: v2 @8 N
repeat above for 5678 instead of 1234 if 1234<5678
7 e9 k6 t1 C: M9 B# k公仔箱論壇
' t- \; b+ u# {) }( k! Etvb now,tvbnow,bttvbcase 35.39.217.77+ i$ N8 m3 o3 y: x
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
1 S! h! L+ U. l, U, o$ cTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。5 x& W) M5 Q/ W: Z
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |