let the 12 balls be numbered 1,2,3,4,5,...,12
& i: e3 I$ B& {# `; ~公仔箱論壇weight 1234 with 5678tvb now,tvbnow,bttvb' O0 d! [0 Q& i {. L* E* `
case 1
" {4 H5 P6 c2 Z: ]1 M% bif 1234>5678, then weight 125 with 678公仔箱論壇2 N1 ]+ H- v3 n8 P/ m% v! ]
if 125>678, then weight 1 with 2: U) ]' j- C% \3 j
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
" x. t @- K& H) h+ Rif 125=678, then weight 3 with 9tvb now,tvbnow,bttvb0 t) w/ z0 A+ |
if 3=9 it is 4, else it is 3
; D( T# L+ A. \5.39.217.77if 125<678, then ewight 3 with 4
' Y/ _2 j1 _$ ptvb now,tvbnow,bttvbif 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 45.39.217.779 l2 e( b% p: u
5.39.217.777 }, I4 z; d u/ |2 z) b5 f& y" J
case 2, a. I+ u: l6 j3 K; `9 d7 C
repeat above for 5678 instead of 1234 if 1234<5678公仔箱論壇6 ~. l0 i$ E1 Y5 y
( ]- f# W- R8 ?" n. m% h公仔箱論壇case 3
, }) v' _8 s% }1 d; c1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
3 O z) {& D& K6 a) ]3 H' NTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。$ K d6 N8 D8 r" q' A
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |