let the 12 balls be numbered 1,2,3,4,5,...,128 r; r% o; f a# @) Q, w, u$ u; [
weight 1234 with 5678
* B" k) j, s# ]6 |! c公仔箱論壇case 1公仔箱論壇- T7 N# |( w( |; l; x2 w
if 1234>5678, then weight 125 with 678
; Z# ?; ]0 F0 a* @+ `$ `TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 125>678, then weight 1 with 2
8 [3 A0 m9 e$ L0 t9 U; z! D. X d2 @2 r- Jif 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
: [* k2 r2 S, h K8 E& ITVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 125=678, then weight 3 with 91 h0 g$ a0 ~( e' a* S
if 3=9 it is 4, else it is 3公仔箱論壇6 ~- L) \1 ?2 ?( u$ H7 m. O& m7 @# M
if 125<678, then ewight 3 with 4
# ]. ?2 X: h. g P/ y$ t4 q0 D5.39.217.76if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4* J. T* s6 G' \: B2 J' x$ B. R! W
/ a7 P( I9 H1 N1 Zcase 25.39.217.769 Z {( _$ {. ~/ K7 a5 K
repeat above for 5678 instead of 1234 if 1234<5678TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。5 V% `* J% l- j, M7 N# x, F0 ~5 M2 j) i
2 C6 P% Y8 K3 q/ m7 [
case 3
! Q; J3 @# r. y4 v7 @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
7 G( N0 }* e0 J! J( p5.39.217.76
5 f4 M- k/ H" O, d. j公仔箱論壇[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |