let the 12 balls be numbered 1,2,3,4,5,...,12
, v) @2 E$ g) rweight 1234 with 5678
0 Q$ h9 W" U4 F% x* Ucase 1
, ^* r' N& `3 p# F6 btvb now,tvbnow,bttvbif 1234>5678, then weight 125 with 678
$ {/ v3 u3 S) \& m公仔箱論壇if 125>678, then weight 1 with 2
9 q0 Z7 R! B: C2 p, u5.39.217.76if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2
. \1 ?) i. N3 w( K% ~" _/ }公仔箱論壇if 125=678, then weight 3 with 9
4 ^- r" a& Z& }1 K& F- Zif 3=9 it is 4, else it is 3
! v8 e) @3 M$ Q4 g& R5.39.217.76if 125<678, then ewight 3 with 4( o6 {& S0 Q) I0 i* @" S
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 45.39.217.76 k" \* }, u0 z3 P: J
3 r P! M) w3 H; M* h0 U9 N: wcase 2! a6 `1 ^0 Z* }* W
repeat above for 5678 instead of 1234 if 1234<56785.39.217.764 x. U7 }; l3 t3 G; p
tvb now,tvbnow,bttvb3 I- ` Z" _) b' U- @
case 3
: V$ [ G/ \% ?3 c: `" E$ |: [5.39.217.761234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explainTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。% J; u& c2 N! G: N' {8 ^/ S
* u+ h7 Y3 a* J8 ?: T1 j0 uTVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |