Lotto - Joker
v13 at priest.com
v13 at priest.com
Tue Oct 2 15:19:00 EEST 2001
On Monday 01 October 2001 11:10, Ioannis Theodossis wrote:
> Exontas psaxei se freshmeat kai sourceforge den vrhka tipota gi' ayto
> proxoraw sth deyterh erwthsh: epeidh den exw asxolhthei me mathimatika,
> pou mporw na vrw kapoion algorithmo gia na bgalw metablhta -
> dismetablhta (dhl. exw ftiaxei kapoies sthles kai tis filtrarw wste
> na vrw tis _elaxistes_ pou mou dinoun eggyhmena 100% 1 h 2 sfalmata).
Ta metablita einai ligo ponemeni istoria. epidi kapote eixa dokimasei to
idio se propo.. mporeis na dimioyrgiseis metablito me 1 sfalma, aplos
pernontas kathe stili kai blepontas an yparxei idia stili me 1 diafora,
alla kati tetoio polles fores den dinei to kalytero apotelesma. PX mporei
na petakseis mia stili, thn opoia an kratoyses, tha petoyses argotera alles 3.
Afaik, ta 'kala' emporika programmata, exoyn pinakes me toys opoioys paragoyn
metablita. Nomizo oti einai kati pinakes poy bgazei o opap.
O sigoyros tropos poy dinei to kalytero apotelesma, einai enas recursive algorithmos,
o opoios pernei mia stili. thn elegxei me tis ypoloipes.. briskei oti yparxoyn (px) 3
me diafora se 1 mono simeio kai dokimazei to apotelesma poy exei , kratontas kathe mia
apo tis 4 paromies stiles...
me apla logia (xontra xontra)
check()
{
loscore=MAX;
gia kathe_stili:
bres paromoies:
gia kathe_paromoia:
krata mono_tin_mia; // ayto ginetai gia oles tis paromoies
score=check();
if (score<loscore) { loscore=score; store_it; }
}
kati tetoio omos einai yperbolika argo kai apaitei kai arketi mnimi
> Ioannis Theodossis
<<V13>>
More information about the Linux-greek-users
mailing list