#3389
Se dă o matrice cu n linii și m coloane cu valori de 0 și 1. Numim dreptunghi de extrem un dreptunghi ale cărui vârfuri au valori egale. Determinați numărul acestor dreptunghiuri, aria dreptunghiului de arie maximă și câte dreptunghiuri au aceeași valoare a vârfurilor ca și dreptunghiul de arie maximă.
| Problema | colturi_dr | Operații I/O |
colturi_dr.in/colturi_dr.out
|
|---|---|---|---|
| Limita timp | 0.05 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64515792 | Utilizator | |
| Fișier | colturi_dr.cpp | Dimensiune | 1.81 KB |
| Data încărcării | 12 Mai 2026, 09:36 | Scor/rezultat | 100 puncte |
colturi_dr.cpp: In function ‘int main()’: colturi_dr.cpp:23:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 23 | if(a[i][l] == a[j][l]) | ^~ colturi_dr.cpp:30:16: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 30 | ++l; | ^~ colturi_dr.cpp:33:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 33 | if(a[i][l] == a[j][l]) | ^~ colturi_dr.cpp:39:16: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 39 | ++l; | ^~ colturi_dr.cpp:42:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 42 | if(a[i][l] == a[j][l]) | ^~ colturi_dr.cpp:49:16: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 49 | ++l; | ^~ colturi_dr.cpp:52:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 52 | if(a[i][l] == a[j][l]) | ^~ colturi_dr.cpp:58:16: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 58 | ++l; | ^~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 5 | 5 | Exemplu | |
| 2 | 0.001 secunde | OK. | 15 | 15 | ||
| 3 | 0.001 secunde | OK. | 20 | 20 | ||
| 4 | 0.002 secunde | OK. | 25 | 25 | ||
| 5 | 0.007 secunde | OK. | 35 | 35 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema colturi_dr 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ă.