let the 12 balls be numbered 1,2,3,4,5,...,12
8 q% y( T x0 rtvb now,tvbnow,bttvbweight 1234 with 5678
. n2 Q5 n Z# I. ^1 q: fwww2.tvboxnow.comcase 1
/ C, B. }3 q: d7 M/ k+ x; u0 \tvb now,tvbnow,bttvbif 1234>5678, then weight 125 with 678
8 _ w/ |9 B- j Ftvb now,tvbnow,bttvbif 125>678, then weight 1 with 2TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。5 U7 b: V: g, m* J" ^' i
if 1>2 it is 1, if 1=2 it is 5, if 1<2 it is 2公仔箱論壇! t; J3 c- H+ A0 J$ M- t6 e
if 125=678, then weight 3 with 9tvb now,tvbnow,bttvb& S) ~+ q- i7 q* ^
if 3=9 it is 4, else it is 35 S( H! [8 V, \
if 125<678, then ewight 3 with 4公仔箱論壇% o. V3 B* p2 z" N2 s X3 h
if 3>4 it is 3, if 3=4, it is 5, if 3<4, it is 45 B& n* ?* E$ g
+ `, e2 w4 N/ i0 g9 A) U) {TVBNOW 含有熱門話題,最新最快電視,軟體,遊戲,電影,動漫及日常生活及興趣交流等資訊。case 2" K; N; [" s' L' \
repeat above for 5678 instead of 1234 if 1234<5678% E* G: m: o- `+ K
' A1 { d$ l7 u# a. u9 V; v2 ^tvb now,tvbnow,bttvbcase 3www2.tvboxnow.com* R3 t! O/ i1 `. Z
1234=5678, this case u only have 9 10 11 12 as possible, this is easy enough that i don't need to explain9 n' }+ A. `: B# p
- s9 N# Z- g# I! d6 d: Z8 B. Fwww2.tvboxnow.com[ 本帖最後由 l0709394 於 2007-5-8 10:15 AM 編輯 ] |