Detalii evaluare #43503088

Rezumat problemă

#3088 pdl

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 #43503088 Utilizator Imi Place Sa Mananc (lenghen_profesoru)
Fișier pdl.cpp Dimensiune 127 B
Data încărcării 30 Aprilie 2023, 01:49 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 7 4 0
1 0 secunde Exited with error status 17 4 0
2 0 secunde Exited with error status 97 4 0
3 0 secunde Exited with error status 201 4 0
4 0 secunde Exited with error status 27 4 0
5 0 secunde Exited with error status 58 4 0
6 0 secunde Exited with error status 134 4 0
7 0 secunde Exited with error status 219 4 0
8 0 secunde Raspuns gresit. 4 0
9 0 secunde Exited with error status 105 4 0
10 0 secunde Exited with error status 207 4 0
11 0 secunde Exited with error status 84 4 0
12 0 secunde Exited with error status 160 4 0
13 0 secunde Exited with error status 31 4 0
14 0 secunde Exited with error status 175 4 0
15 0 secunde Exited with error status 1 4 0
16 0 secunde Exited with error status 69 4 0
17 0 secunde Exited with error status 164 4 0
18 0 secunde Exited with error status 65 4 0
19 0 secunde Exited with error status 164 4 0
20 0 secunde Exited with error status 56 4 0
21 0 secunde Exited with error status 115 4 0
22 0 secunde Exited with error status 158 4 0
23 0 secunde Exited with error status 185 4 0
24 0 secunde Exited with error status 208 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ă.