#1257
NumarParanteze
Să se determine numărul de șiruri de lungime 2 * n
care conțin paranteze închise corect.
Problema | NumarParanteze | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #21153183 | Utilizator | |
Fișier | numarparanteze.cpp | Dimensiune | 710 B |
Data încărcării | 21 Februarie 2020, 12:24 | Scor / rezultat | 30 puncte |
numarparanteze.cpp: In function 'long unsigned int catalanDynamic(long unsigned int)': numarparanteze.cpp:7:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=2;i<=n;i++) ^ numarparanteze.cpp: In function 'long unsigned int catalan(long unsigned int)': numarparanteze.cpp:21:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<n;i++){ ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | OK. | 10 | 10 | ||
3 | 0 secunde | OK. | 10 | 10 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 30 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NumarParanteze 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ă.