Detalii evaluare #61234142

Rezumat problemă

#3088
Fie N un număr natural. Definim o partiție pe două linii a numărului N ca fiind două șiruri nevide de numere naturale a1, a2, …, ak și b1, b2, …, bp (k ≥ p), cu proprietățile:
  • a1 > a2 > ... > ap > ... > ak
  • b1 > b2 > ... > bp
  • b1 ≤ a1 , b2 ≤ a2 , …, bp ≤ ap
  • a1 + a2 + ... + ak + b1 + b2 +... + bp = N

Să se scrie un program care citește numărul natural N și determină numărul P de partiții pe două linii ale numărului natural N.

Detalii

Problema pdl Operații I/O pdl.in/pdl.out
Limita timp 0.5 secunde Limita memorie Total: 128 MB / Stivă 8 MB
Id soluție #61234142 Utilizator Anem Robert (Roberr467)
Fișier pdl.cpp Dimensiune 1.79 KB
Data încărcării 22 Noiembrie 2025, 03:26 Scor/rezultat 0 puncte

Evaluare

Mesaj compilare


Rezultat evaluare

Test Timp Mesaj evaluare Scor posibil Scor obținut
0 0 secunde Exited with error status 55 4 0
1 0 secunde Exited with error status 49 4 0
2 0 secunde Exited with error status 57 4 0
3 0 secunde Exited with error status 50 4 0
4 0 secunde Exited with error status 50 4 0
5 0 secunde Exited with error status 51 4 0
6 0 secunde Exited with error status 51 4 0
7 0 secunde Exited with error status 52 4 0
8 0 secunde Exited with error status 53 4 0
9 0 secunde Exited with error status 54 4 0
10 0 secunde Exited with error status 55 4 0
11 0 secunde Exited with error status 56 4 0
12 0 secunde Exited with error status 57 4 0
13 0 secunde Exited with error status 49 4 0
14 0 secunde Exited with error status 49 4 0
15 0 secunde Exited with error status 49 4 0
16 0 secunde Exited with error status 49 4 0
17 0 secunde Exited with error status 49 4 0
18 0 secunde Exited with error status 49 4 0
19 0 secunde Exited with error status 49 4 0
20 0 secunde Exited with error status 49 4 0
21 0 secunde Exited with error status 49 4 0
22 0 secunde Exited with error status 49 4 0
23 0 secunde Exited with error status 49 4 0
24 0 secunde Exited with error status 50 4 0
Punctaj total 0

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema pdl face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.

Du-te sus!