let the 12 balls be numbered 1,2,3,4,5,...,12
3 g: u( l {8 J: z, s# f) Dweight 1234 with 5678
# u, m7 |: Y9 A3 j' S- xtvb now,tvbnow,bttvbcase 1
! N8 }2 U# Q; h( }. Gif 1234>5678, then weight 125 with 678
" {* l" ~# Z* T: ~) y qtvb now,tvbnow,bttvbif 125>678, then weight 1 with 25.39.217.76% d! a; n2 H( {" F- _2 H8 |
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2$ R6 {1 l/ |2 g
if 125=678, then weight 3 with 9
0 L3 I. Z6 [# V, Z1 D4 V0 ATVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。if 3=9 it is 4, else it is 3
$ c& l# \/ B" i+ Q! h$ vif 125<678, then ewight 3 with 4
! m) @1 o' @' A8 |8 ~, Y7 q& q! h公仔箱論壇if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 4
4 h! p6 n9 | K% M5 k* ]5.39.217.765.39.217.762 H# i, ?" V. F
case 26 q$ I7 Y3 i1 G- ^0 G, S
repeat above for 5678 instead of 1234 if 1234<5678; [2 q) K/ S7 h2 B
公仔箱論壇) q: k2 B/ K5 i4 N3 f9 }
case 33 m; J3 y6 B5 M4 I2 Y5 O4 t
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain
6 y* b9 t7 j6 i$ ]) P! H' j/ `) F; d, B: _% ^7 ]" D; R
[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |