#3086
Cristi, deja familiarizat cu noțiunea de densitate de la orele de fizică, își propune să o studieze și din perspectiva informaticii. Astfel, el alege un șir de N numere naturale A[1], A[2], …, A[N] și își dorește să experimenteze. Să se calculeze câte secvențe nevide au proprietatea că raportul dintre numărul elementelor pare din cadrul secvenței și lungimea secvenței este exact D.
Lot Național Juniori 2019
| Problema | densitate1 | Operații I/O |
densitate.in/densitate.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 128 MB
/
Stivă 8 MB
|
| Id soluție | #61178587 | Utilizator | |
| Fișier | densitate1.cpp | Dimensiune | 1.80 KB |
| Data încărcării | 21 Noiembrie 2025, 03:32 | Scor/rezultat | 0 puncte |
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0 secunde | Exited with error status 49 | 5 | 0 | ||
| 1 | 0 secunde | Exited with error status 49 | 5 | 0 | ||
| 2 | 0.004 secunde | Exited with error status 53 | 5 | 0 | ||
| 3 | 0.012 secunde | Exited with error status 49 | 5 | 0 | ||
| 4 | 0.028 secunde | Exited with error status 50 | 5 | 0 | ||
| 5 | 0.04 secunde | Exited with error status 51 | 5 | 0 | ||
| 6 | 0.056 secunde | Exited with error status 52 | 5 | 0 | ||
| 7 | 0.072 secunde | Exited with error status 53 | 5 | 0 | ||
| 8 | 0.068 secunde | Exited with error status 53 | 5 | 0 | ||
| 9 | 0.068 secunde | Exited with error status 53 | 5 | 0 | ||
| 10 | 0.072 secunde | Exited with error status 49 | 5 | 0 | ||
| 11 | 0.072 secunde | Exited with error status 49 | 5 | 0 | ||
| 12 | 0.072 secunde | Exited with error status 49 | 5 | 0 | ||
| 13 | 0.072 secunde | Exited with error status 49 | 5 | 0 | ||
| 14 | 0.072 secunde | Exited with error status 49 | 5 | 0 | ||
| 15 | 0.072 secunde | Exited with error status 49 | 5 | 0 | ||
| 16 | 0.072 secunde | Exited with error status 49 | 5 | 0 | ||
| 17 | 0.072 secunde | Exited with error status 49 | 5 | 0 | ||
| 18 | 0.072 secunde | Exited with error status 49 | 5 | 0 | ||
| 19 | 0.072 secunde | Exited with error status 49 | 5 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema densitate1 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
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ă.