#1267
plaja
Fiind data o matrice de 0
si 1
, sa se gaseasca cel mai mare dreptunghi care contine doar 0
.
Problema | plaja | Operații I/O |
plaja.in /plaja.out
|
---|---|---|---|
Limita timp | 0.7 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
Id soluție | #19574855 | Utilizator | |
Fișier | plaja.cpp | Dimensiune | 1.32 KB |
Data încărcării | 12 Decembrie 2019, 17:30 | Scor / rezultat | 20 puncte |
plaja.cpp: In function 'int main()': plaja.cpp:47:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("plaja.in","r",stdin); ^ plaja.cpp:48:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("plaja.out","w",stdout); ^ plaja.cpp:50:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ plaja.cpp:55:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%1d",&p[i][j]); ^ plaja.cpp: In function 'int skyline(int, int)': plaja.cpp:43:12: warning: 'ari' may be used uninitialized in this function [-Wmaybe-uninitialized] return ari; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0.008 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0.004 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | OK. | 10 | 10 | ||
8 | 0.012 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0.092 secunde | Raspuns gresit. | 10 | 0 | ||
10 | 0.092 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 20 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema plaja 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ă.