#3410
Se dă o matrice de numere întregi cu n
linii și n
coloane. Să se determine suma maximă care se poate obține dintr-o submatrice.
Folclorul informatic
Problema | SubmatrixSumMax | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #56721322 | Utilizator | |
Fișier | submatrixsummax.cpp | Dimensiune | 1.05 KB |
Data încărcării | 03 Martie 2025, 21:59 | Scor / rezultat | 0 puncte |
submatrixsummax.cpp: In function 'int main()': submatrixsummax.cpp:13:19: warning: variable 'l1' set but not used [-Wunused-but-set-variable] int n,m,i1,i2,l1,l2,c1,c2,s,pi,smax,i,j; ^ submatrixsummax.cpp:13:22: warning: variable 'l2' set but not used [-Wunused-but-set-variable] int n,m,i1,i2,l1,l2,c1,c2,s,pi,smax,i,j; ^ submatrixsummax.cpp:50:31: warning: 'c2' may be used uninitialized in this function [-Wmaybe-uninitialized] fout<<" "<<c1<<" "<<c2; ^ submatrixsummax.cpp:50:20: warning: 'c1' may be used uninitialized in this function [-Wmaybe-uninitialized] fout<<" "<<c1<<" "<<c2; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
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. | 5 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SubmatrixSumMax 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ă.