let the 12 balls be numbered 1,2,3,4,5,...,12公仔箱論壇9 W, B5 F/ u1 g2 d7 u3 C2 p7 E
weight 1234 with 5678
/ H% N8 o+ S/ V3 s7 `case 12 |; H" h8 s7 ?+ U* f Y5 T! ]/ q
if 1234>5678, then weight 125 with 678
- o6 \# q3 ?. V6 f% x+ I! Ftvb now,tvbnow,bttvbif 125>678, then weight 1 with 2
4 x$ n- l5 x+ v9 Q' @1 _TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
. y7 y i2 L$ zif 125=678, then weight 3 with 9
( X4 _9 O. H1 F% j公仔箱論壇if 3=9 it is 4, else it is 35 ~( g; t) P4 e6 Q+ Z C
if 125<678, then ewight 3 with 4
" ~6 d9 `' Y# W) E! v: t# B9 c公仔箱論壇if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
; E$ T. d) d- `tvb now,tvbnow,bttvb
8 I: N' e0 o" f1 b. _www3.tvboxnow.comcase 2
$ z. x3 q) }6 X: ~5 b7 T, k公仔箱論壇repeat above for 5678 instead of 1234 if 1234<5678公仔箱論壇' P, `; ]; t3 ], a
TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。) X3 [4 f0 I ?- z) q+ h
case 3tvb now,tvbnow,bttvb7 f2 t- e! L* v& P3 K9 _! y' o" W/ w5 z
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
8 `5 I) o m7 Y# v# S, [TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。
Y6 d: Z& p& l% o& y$ [7 Z公仔箱論壇[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |