Afişează mesaje
Pagini: 1 [2] 3
26  infoarena - concursuri, probleme, evaluator, articole / Arhiva de probleme / Răspuns: 984 Text3 : Noiembrie 26, 2013, 17:39:19
o intrebare... pe exemplu nu e solutie corecta si
Cod:
ion
nu
urmareste
emisiuni
interesante
emisiuni
? Smile
27  infoarena - concursuri, probleme, evaluator, articole / Arhiva de probleme / Răspuns: 1436 Dtcsu : Noiembrie 18, 2013, 14:10:36
ne spune careva vreun hint? nu reusesc sa trec de 20p  Brick wall

LE am rezolvat. multumesc Heidelbacher Andrei !
28  infoarena - concursuri, probleme, evaluator, articole / Arhiva de probleme / Răspuns: 151 SuperP : Octombrie 12, 2013, 16:44:35
sall. ma puteti ajuta ? imi genereaza doar 24 de numere superprime.
initial am pus in coada 2,3,5,7 si pt un element x din coada verific care din numerele 10*x+1, 10*x+3, 10*x+7 sunt prime si le adaug in coada....
Cod:
2
3
5
7
23
31
37
53
71
73
233
311
313
317
373
733
2333
3137
3733
7331
7333
23333
37337
73331

LE: gata. sunt 83. treb sa verific si pe 10*x+9 Very Happy
29  infoarena - concursuri, probleme, evaluator, articole / Arhiva de probleme / Răspuns: 712 Albinuta : Octombrie 01, 2013, 13:52:34
Am incercat problema Albinuta . Am o problema cu algoritmul Floyd de detectie a ciclurilor intr.un sir.
am facut la fel ca pe wiki . Pe albinuta iau doar 15p.
intr-adevar da incorect.pe unul din testele oficiale sirul ar fi
Cod:
1 2 4 1 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 1 3 5 2 3 5 2 3 5 2 3 4 5 2 4 1 3 5 2 3 5 2 3 5 2 3 4 1 2 4 1 3 5 1 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 1 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 1 2 4 1 3 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5 2 3 5 2 3 4 1 3 5 1 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 1 2 4 1 3 5 2 3 4 5 2 4 1 3 5 2 3 5 2 3 5 2 3 4 1 2 4 1 3 5 2 3 5 1 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 1 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 5 2 4 1 3 5 2 3 5 2 3 5 2 3 4 1 3 5 1 3 5 2 3 5 2 3 5 2 3 4 1 2 4 1 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 1 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 1 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 5 1 3 5 2 4 1 3 5 2 3 5 1 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 2 4 1 3 5 2 3
iar algoritmul meu imi returneaza miu=4 lambda=3 ceea ce este gresit...

Cod:


#define F(i) i+1

void find()
{
    tortoise = F(0);
    hare =F(F(0));
    while (x[tortoise] != x[hare])
    {
         tortoise = F(tortoise);
         hare = F(F(hare));
    }

}

void find_miu()
{
    miu=0;
    tortoise = 0;
    while (x[tortoise] != x[hare])
    {
        tortoise = F(tortoise);
        hare = F(hare);
        miu++;
    }

}

void find_lambda()
{
    lambda=1;
    hare = F(tortoise);
    while (x[tortoise] != x[hare])
    {
        hare = F(hare);
        lambda++;
    }
}


LE: ma poate ajuta cineva?Very Happy
30  infoarena - concursuri, probleme, evaluator, articole / Concursuri / Răspuns: OJI 2013 biperm (XI-XII) : Septembrie 29, 2013, 09:31:46
incarca careva problemele de la OJI 2013, va rog?Very Happy
31  infoarena - concursuri, probleme, evaluator, articole / Informatica / Cycle Detection Algorithm : Septembrie 28, 2013, 23:12:59
 Salut. Am incercat problema Albinuta de la ONI 2008 . Am o problema cu algoritmul Floyd de detectie a ciclurilor intr.un sir.
am facut la fel ca pe http://en.wikipedia.org/wiki/Cycle_detection . Pe albinuta iau doar 15p.
intr-adevar da incorect.pe unul din testele oficiale sirul ar fi
Cod:
1 2 4 1 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 1 3 5 2 3 5 2 3 5 2 3 4 5 2 4 1 3 5 2 3 5 2 3 5 2 3 4 1 2 4 1 3 5 1 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 1 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 1 2 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 5 2 4 1 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 2 4 1 3 5 2 3 5 2 3 5 2 3 4 1 3 5 1 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 1 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 5 2 4 1 3 5 2 3 5 1 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 1 3 4 1 2 4 1 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 5 2 4 1 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1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 3 5 2 3 5 2 3 4 5 1 3 5 2 4 1 3 5 2 3 5 1 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 3 5 2 3 5 2 3 5 2 3 5 2 3 4 1 2 4 1 3 5 2 3
iar algoritmul meu imi returneaza miu=4 lambda=3 ceea ce este gresit...

Cod:


#define F(i) i+1

void find()
{
    tortoise = F(0);
    hare =F(F(0));
    while (x[tortoise] != x[hare])
    {
         tortoise = F(tortoise);
         hare = F(F(hare));
    }

}

void find_miu()
{
    miu=0;
    tortoise = 0;
    while (x[tortoise] != x[hare])
    {
        tortoise = F(tortoise);
        hare = F(hare);
        miu++;
    }

}

void find_lambda()
{
    lambda=1;
    hare = F(tortoise);
    while (x[tortoise] != x[hare])
    {
        hare = F(hare);
        lambda++;
    }
}


LE: ma poate ajuta cineva?Very Happy
32  infoarena - concursuri, probleme, evaluator, articole / Informatica / Răspuns: Problema Next - eroare evaluator? : August 20, 2013, 12:19:56
am pus si mai mult... am declarat vectorii si mai mari... oricum nu cred ca e asta...  pentru ca da 100p daca las pe M[ ] declarat.  fara el da doar 20p... .si nu da KBS... da incorect
http://www.infoarena.ro/job_detail/987301
http://www.infoarena.ro/job_detail/987302
33  infoarena - concursuri, probleme, evaluator, articole / Informatica / Problema Next - eroare evaluator? : August 19, 2013, 15:04:22
Salut. Am rezolvat problema Next ( http://www.infoarena.ro/problema/next ).
Sursa de 100p se gaseste aici http://www.infoarena.ro/job_detail/986812 ...
Uitasem declarat tabloul M [ ]  (pe care il folosisem initial, dar n.am mai avut nevoie de el)...nu l.am mai declarat si iau doar 20p ( http://www.infoarena.ro/job_detail/986811 )... e aceeasi sursa... doar am sters ceva ce era declarat degeaba...  si dupa ce l.am sters am zis sa-l bag la loc sa  incarc sursa de 100p pana ma lamureste careva de ce se intampla asa si n-am mai declarat int N[] , M[ ] ; ... am bagat fara sa-mi dau seama int M[ ] , N[ ]; si tot 20p iau ....
De ce se intampla chestiile astea?
Brick wall Brick wall Brick wall Brick wall Brick wall Brick wall Brick wall Brick wall Brick wall Brick wall Brick wall Brick wall
34  infoarena - concursuri, probleme, evaluator, articole / Concurs Mihai Patrascu 2013 / Răspuns: Album : August 17, 2013, 14:07:21
mai detaliat?Very Happy
35  infoarena - concursuri, probleme, evaluator, articole / Concurs Mihai Patrascu 2013 / Răspuns: Album : August 17, 2013, 08:58:37
Bafta tuturor !  Very Happy
36  infoarena - concursuri, probleme, evaluator, articole / Concurs Mihai Patrascu 2013 / Răspuns: Rectangles : August 17, 2013, 08:58:08
Bafta tuturor !  Very Happy
37  infoarena - concursuri, probleme, evaluator, articole / Concurs Mihai Patrascu 2013 / Răspuns: Treemis : August 17, 2013, 08:57:27
Bafta tuturor !  Very Happy
38  infoarena - concursuri, probleme, evaluator, articole / Concurs Mihai Patrascu 2013 / Răspuns: Album : August 17, 2013, 08:50:10
ok.ms
39  infoarena - concursuri, probleme, evaluator, articole / Concurs Mihai Patrascu 2013 / Răspuns: Rectangles : August 17, 2013, 08:49:18
 2 ore sau 1 ora? Very Happy
LE: "Timpul alocat pentru intrebari va fi de 2 ore."  ms.
40  infoarena - concursuri, probleme, evaluator, articole / Concurs Mihai Patrascu 2013 / Răspuns: Album : August 17, 2013, 08:48:18
2 ore sau 1 ora?Very Happy ... sa stim care e greseala:D
41  infoarena - concursuri, probleme, evaluator, articole / Arhiva de probleme / Răspuns: 361 Johnie : August 11, 2013, 12:56:37
sall.cat va da pe testele urmatoare?

Cod:
15 15
1 2
2 3
3 4
4 5
5 3
3 6
6 7
7 8
8 9
10 11
11 12
12 10
11 14
14 15
15 11


Cod:
16 15
1 2
2 3
3 4
4 5
5 3
3 6
6 7
7 8
8 9
10 11
11 12
12 10
11 14
14 15
15 11


mie imi da asa

Cod:
2
10 9 8 7 6 3 5 4 3 2 1
7 10 12 11 15 14 11 10


Cod:
2
10 9 8 7 6 3 5 4 3 2 1
7 10 12 11 15 14 11 10
42  infoarena - concursuri, probleme, evaluator, articole / Arhiva de probleme / Răspuns: 1387 Split : August 10, 2013, 14:39:48
ms. s-a rezolvat Very Happy
43  infoarena - concursuri, probleme, evaluator, articole / Arhiva de probleme / Răspuns: 1387 Split : August 09, 2013, 19:42:15
salut. am si eu o problema aici...nu stiu unde gresesc la calcularea lui k....fixez pe j...si caut  in 1..j-2 pe i si in j+2...n-2 pe k....am luat testele de la oni....si pe alea si pe cele de pe infoarena tot 50p iau. ideea e ca pe toate testele de la oni  imi calculeaza bine i si j . k-ul e gresit pe 5 teste(si din astea 5 pe 3 da si alta suma)....da un k mai mare cu o unitate decat e in out-ul din evaluator....
secventa de cod care mi.l calculeaza pe k este...
Cod:
        int Dreapta=0;
        int K=-1;
        minim=min(a[j+1],a[j+2]);
        maxim=max(a[j+1],a[j+2]);
        for(int k=j+3;k<=n-2;k++)
        {
            int aux=maxim-minim+MaxD[k+1]-minD[k+1];
            if(aux>Dreapta){Dreapta=aux;K=k;}
            if(a[k]<minim)minim=a[k];
            if(a[k]>maxim)maxim=a[k];
        }
k-ul cautat il salvez in variabila K
si apoi mai aveam sa reactualizez solutia...
* minD=cel mai mic element care se  afla la dreapta pozitiei i
* MaxD=cel mai mare element =//=

am dat de curiozitate sa faca K=k-1; si atunci iau 20p, dar pe alte teste....
sursa se gaseste aici http://www.infoarena.ro/job_detail/982548
unde gresesc?Very Happy
44  infoarena - concursuri, probleme, evaluator, articole / Concursuri / Răspuns: OJI 2013 biperm (XI-XII) : August 08, 2013, 09:01:14
salut. de ce problema asta nu e pe infoarena in arhiva?Very Happy
45  infoarena - concursuri, probleme, evaluator, articole / Arhiva de probleme / Răspuns: 073 Perechi : August 04, 2013, 19:28:32
da...ai avut dreptate...ms mult....nu observasem treaba asta....si trimisesem 5000 de surse:D....ms mult...voi fi mai atent pe viitor
46  infoarena - concursuri, probleme, evaluator, articole / Arhiva de probleme / Răspuns: 073 Perechi : August 04, 2013, 15:04:36
va rog sa ma ajutati...iau 90p...incorect pe testele 9 si 18.......
am gasit o formula in care apar exponentii numerelor prime din descompunerea lui n in factori.... totusi da incorect pe 2 teste si nu stiu de ce.....am scris tot codul de la capat si degeaba... e vreun caz special ceva?
LE:
Cod:
void Solve()
{
    for(int i=1;i<=k && n!=1;i++)
        if(n % P[i]==0)
        {
            int exp=0;
            while(n % P[i]==0)n/=P[i],exp++;
            //formula-sol
        }

    
    g<<sol<<'\n';

}
47  infoarena - concursuri, probleme, evaluator, articole / Informatica / Taie : Iulie 21, 2013, 15:57:55
stie cineva unde gasesc explicatia la problema Taie? (fara randomizari)..cum se mai poate face altfel?
48  infoarena - concursuri, probleme, evaluator, articole / Informatica / Răspuns: enum : Mai 01, 2013, 09:49:03
ms:D
49  infoarena - concursuri, probleme, evaluator, articole / Informatica / enum : Aprilie 30, 2013, 08:46:30
 Salut. Poate sa-mi dea cineva un link/sa-mi arate cum folosesc tipul multime(enum) in c++?
vreau sa fac multimi de numere cu elemente 0..255.  Nu stiu nici sa le declar, nici cum sa implementez operatiile cu multimi (reuniune,intersectie,diferenta).
50  infoarena - concursuri, probleme, evaluator, articole / Informatica / Răspuns: problema numere reale : Aprilie 13, 2013, 23:18:33
multumesc
Pagini: 1 [2] 3
Powered by SMF 1.1.19 | SMF © 2006-2013, Simple Machines