#2779
Se dă o matrice binară (valori 0
și 1
). Să se determine câte pătrate exista cu proprietatea că acestea au pe marginea lor doar valori 1
.
Problema | cntSQ | Operații I/O |
![]() cntsq.in /cntsq.out
|
---|---|---|---|
Limita timp | 0.15 secunde | Limita memorie |
Total: 32 MB
/
Stivă 8 MB
|
Id soluție | #13024253 | Utilizator | |
Fișier | cntsq.cpp | Dimensiune | 4.19 KB |
Data încărcării | 01 Ianuarie 2019, 01:26 | Scor / rezultat | 10 puncte |
cntsq.cpp: In function 'int main()': cntsq.cpp:136:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<a.size();i++) ^ cntsq.cpp:143:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<a.size();i++) ^ cntsq.cpp:174:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=i;j<a.size() && j<=dr[i];j++) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0.024 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0.048 secunde | Raspuns gresit. | 10 | 0 | ||
7 | Depășit | Limita de timp depășită | 10 | 0 | ||
8 | Depășit | Limita de timp depășită | 10 | 0 | ||
9 | 0.108 secunde | Raspuns gresit. | 10 | 0 | ||
10 | Depășit | Limita de timp depășită | 5 | 0 | ||
11 | Depășit | Limita de timp depășită | 5 | 0 | ||
Punctaj total | 10 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cntSQ 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ă.