#2665
Dată fiind o matrice dreptunghiulară cu elemente 0
şi 1
, care este aria maximă a unui dreptunghi format numai din elemente egale cu 1
?
Problema | Dreptunghi1 | Operații I/O |
![]() dreptunghi1.in /dreptunghi1.out
|
---|---|---|---|
Limita timp | 2.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 56 MB
|
Id soluție | #56350549 | Utilizator | |
Fișier | dreptunghi1.cpp | Dimensiune | 760 B |
Data încărcării | 14 Februarie 2025, 20:46 | Scor / rezultat | 0 puncte |
dreptunghi1.cpp: In function 'int main()': dreptunghi1.cpp:17:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1 ; i <= m ; i ++) ^ dreptunghi1.cpp:18:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 1 ; j <= n ; j ++) ^ dreptunghi1.cpp:21:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1 ; i <= m ; i ++) ^ dreptunghi1.cpp:23:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 1 ; j <= n ; j ++) ^ dreptunghi1.cpp:31:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(i*(j)>S)S=i*j; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
2 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
3 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
4 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
5 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
6 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
7 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
8 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
9 | 0.036 secunde | Raspuns gresit. | 5 | 0 | ||
10 | 0.04 secunde | Raspuns gresit. | 5 | 0 | ||
11 | 0.124 secunde | Raspuns gresit. | 5 | 0 | ||
12 | 0.448 secunde | Raspuns gresit. | 5 | 0 | ||
13 | 1.772 secunde | Raspuns gresit. | 5 | 0 | ||
14 | Depășit | Limita de timp depășită | 5 | 0 | ||
15 | Depășit | Limita de timp depășită | 5 | 0 | ||
16 | Depășit | Limita de timp depășită | 5 | 0 | ||
17 | Depășit | Limita de timp depășită | 5 | 0 | ||
18 | Depășit | Limita de timp depășită | 5 | 0 | ||
19 | Depășit | Limita de timp depășită | 5 | 0 | ||
20 | Depășit | Limita de timp depășită | 5 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Dreptunghi1 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ă.